congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
BitVector.toIntBag
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: junkdog/artemis-odb

void rebuildCompressedActives() {
  activeEntityIds.toIntBag(entities);
}
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 static IntBag toIntBag(BitVector bs, IntBag out) {
  return bs.toIntBag(out);
}
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: net.onedaybeard.artemis/artemis-odb

public static IntBag toIntBag(BitVector bs, IntBag out) {
  return bs.toIntBag(out);
}
origin: net.onedaybeard.artemis/artemis-odb

void rebuildCompressedActives() {
  activeEntityIds.toIntBag(entities);
}
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: 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

void preWrite(SaveFileFormat save) {
  entityIds.clear();
  ConverterUtil.toBitVector(save.entities, entityIds);
  boolean foundNew = true;
  BitVector bs = entityIds;
  while (foundNew) {
    foundNew = false;
    for (int i = bs.nextSetBit(0); i >= 0; i = bs.nextSetBit(i + 1)) {
      for (Field f : referencingFields) {
        foundNew |= findReferences(i, f, bs);
      }
    }
  }
  entityIds.toIntBag(save.entities);
}
origin: net.onedaybeard.artemis/artemis-odb-serializer

void preWrite(SaveFileFormat save) {
  entityIds.clear();
  ConverterUtil.toBitVector(save.entities, entityIds);
  boolean foundNew = true;
  BitVector bs = entityIds;
  while (foundNew) {
    foundNew = false;
    for (int i = bs.nextSetBit(0); i >= 0; i = bs.nextSetBit(i + 1)) {
      for (Field f : referencingFields) {
        foundNew |= findReferences(i, f, bs);
      }
    }
  }
  entityIds.toIntBag(save.entities);
}
com.artemis.utilsBitVectortoIntBag

Javadoc

Decodes the set bits as integers. The destination IntBag is reset before the bits are transposed.

Popular methods of BitVector

  • get
  • clear
  • 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
  • unsafeGet
  • or,
  • unsafeGet,
  • andNot,
  • bitIndex,
  • bitOffset,
  • checkCapacity,
  • checkIndex,
  • checkRange,
  • clone

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • setRequestProperty (URLConnection)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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