Tabnine Logo
BitVector.clear
Code IndexAdd Tabnine to your IDE (free)

How to use
clear
method
in
com.artemis.utils.BitVector

Best Java code snippets using com.artemis.utils.BitVector.clear (Showing top 20 results out of 315)

origin: junkdog/artemis-odb

/** @param index the index of the bit to clear
 * @throws ArrayIndexOutOfBoundsException if index < 0 or index >= words.length */
public void unsafeClear(int index) {
  clear(index);
}
origin: junkdog/artemis-odb

public void set(int bitIndex, boolean value) {
  if (value == true) {
    set(bitIndex);
  } else {
    clear(bitIndex);
  }
}
origin: junkdog/artemis-odb

public void set(int fromIndex, int toIndex, boolean value) {
  if (value == true) {
    set(fromIndex, toIndex);
  } else {
    clear(fromIndex, toIndex);
  }
}
origin: net.onedaybeard.artemis/artemis-odb

IntBag getPendingPurge() {
  pendingPurge.toIntBag(toPurge);
  pendingPurge.clear();
  return toPurge;
}
origin: junkdog/artemis-odb

private void transferBitsToInts(IntBag inserted, IntBag removed) {
  insertedIds.toIntBag(inserted);
  removedIds.toIntBag(removed);
  insertedIds.clear();
  removedIds.clear();
}
origin: junkdog/artemis-odb

/** @param index the index of the bit to set
 * @throws ArrayIndexOutOfBoundsException if index < 0 */
public void set(int index, boolean value) {
  if (value) {
    set(index);
  } else {
    clear(index);
  }
}
origin: junkdog/artemis-odb

IntBag getPendingPurge() {
  pendingPurge.toIntBag(toPurge);
  pendingPurge.clear();
  return toPurge;
}
origin: net.onedaybeard.artemis/artemis-odb

private void transferBitsToInts(IntBag inserted, IntBag removed) {
  insertedIds.toIntBag(inserted);
  removedIds.toIntBag(removed);
  insertedIds.clear();
  removedIds.clear();
}
origin: junkdog/artemis-odb

public void clear(int bitIndex) {
  checkIndex(bitIndex);
  clear(array, bitIndex);
}
origin: net.onedaybeard.artemis/artemis-odb

private void toEntityIntBags(BitVector changed, BitVector deleted) {
  changed.toIntBagIdCid(world.getComponentManager(), this.changed);
  deleted.toIntBag(this.deleted);
  changed.clear();
  deleted.clear();
}
origin: junkdog/artemis-odb

private void toEntityIntBags(BitVector changed, BitVector deleted) {
  changed.toIntBagIdCid(world.getComponentManager(), this.changed);
  deleted.toIntBag(this.deleted);
  changed.clear();
  deleted.clear();
}
origin: junkdog/artemis-odb

public void preWrite(SaveFileFormat save) {
  componentIds.clear();
  referencedComponents.clear();
  inspectComponentTypes(save);
  extractComponents(save);
}
origin: junkdog/artemis-odb

@Override
void purge() {
  if (pool != null)
    purgeWithPool();
  else
    purgeNoPool();
  idBits.clear();
}
origin: net.onedaybeard.artemis/artemis-odb

@Override
void purge() {
  if (pool != null)
    purgeWithPool();
  else
    purgeNoPool();
  idBits.clear();
}
origin: junkdog/artemis-odb

void deleted(IntBag entities) {
  int[] ids = entities.getData();
  for (int i = 0, s = entities.size(); s > i; i++) {
    int id = ids[i];
    if (registered.get(id)) {
      String removedTag = tagsByEntity.remove(world.getEntity(id));
      entitiesByTag.remove(removedTag);
      registered.clear(id);
    }
  }
}
origin: net.onedaybeard.artemis/artemis-odb

void deleted(IntBag entities) {
  int[] ids = entities.getData();
  for (int i = 0, s = entities.size(); s > i; i++) {
    int id = ids[i];
    if (registered.get(id)) {
      String removedTag = tagsByEntity.remove(world.getEntity(id));
      entitiesByTag.remove(removedTag);
      registered.clear(id);
    }
  }
}
origin: junkdog/artemis-odb

@Override
boolean unmark(int entityId) {
  if (idBits.get(entityId)) {
    idBits.clear(entityId);
    if (pool != null) {
      pool.free((PooledComponent) components.get(entityId));
    }
    return true;
  } else {
    return false;
  }
}
origin: net.onedaybeard.artemis/artemis-odb

@Override
boolean unmark(int entityId) {
  if (idBits.get(entityId)) {
    idBits.clear(entityId);
    if (pool != null) {
      pool.free((PooledComponent) components.get(entityId));
    }
    return true;
  } else {
    return false;
  }
}
origin: junkdog/artemis-odb

TransmuteOperation createOperation(int entityId) {
  BitVector componentBits = cm.componentBits(entityId);
  bs.clear();
  bs.or(componentBits);
  bs.or(additions);
  bs.andNot(removals);
  int compositionId = cm.compositionIdentity(bs);
  return new TransmuteOperation(compositionId,
    getAdditions(componentBits), getRemovals(componentBits));
}
origin: net.onedaybeard.artemis/artemis-odb

TransmuteOperation createOperation(int entityId) {
  BitVector componentBits = cm.componentBits(entityId);
  bs.clear();
  bs.or(componentBits);
  bs.or(additions);
  bs.andNot(removals);
  int compositionId = cm.compositionIdentity(bs);
  return new TransmuteOperation(compositionId,
    getAdditions(componentBits), getRemovals(componentBits));
}
com.artemis.utilsBitVectorclear

Javadoc

Clears the entire bitset

Popular methods of BitVector

  • get
  • nextSetBit
    Returns the index of the first bit that is set to true that occurs on or after the specified startin
  • set
  • <init>
  • cardinality
  • equals
  • intersects
    Returns true if the specified BitVector has any bits set to true that are also set to true in this B
  • isEmpty
  • length
    Returns the "logical size" of this bitset: the index of the highest set bit in the bitset plus one.
  • or
    Performs a logical OR of this bit set with the bit set argument. This bit set is modified so that a
  • toIntBag
    Decodes the set bits as integers. The destination IntBag is reset before the bits are transposed.
  • unsafeGet
  • toIntBag,
  • unsafeGet,
  • andNot,
  • bitIndex,
  • bitOffset,
  • checkCapacity,
  • checkIndex,
  • checkRange,
  • clone

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Reference (javax.naming)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now