Tabnine Logo
BitVector.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.artemis.utils.BitVector
constructor

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

origin: junkdog/artemis-odb

private Aspect() {
  this.allSet = new BitVector();
  this.exclusionSet = new BitVector();
  this.oneSet = new BitVector();
}
origin: junkdog/artemis-odb

private Aspect() {
  this.allSet = new BitVector();
  this.exclusionSet = new BitVector();
  this.oneSet = new BitVector();
}
origin: net.onedaybeard.artemis/artemis-odb

private Aspect() {
  this.allSet = new BitVector();
  this.exclusionSet = new BitVector();
  this.oneSet = new BitVector();
}
origin: junkdog/artemis-odb

/** Prepare new builder. */
public EntityTransmuterFactory(World world) {
  this.world = world;
  types = world.getComponentManager().typeFactory;
  additions = new BitVector();
  removals = new BitVector();
}
origin: junkdog/artemis-odb

/**
 * Creates a new TagManager.
 */
public TagManager() {
  entitiesByTag = new HashMap<>();
  tagsByEntity = new HashMap<>();
  registered = new BitVector();
}
origin: net.onedaybeard.artemis/artemis-odb

/** Prepare new builder. */
public EntityTransmuterFactory(World world) {
  this.world = world;
  types = world.getComponentManager().typeFactory;
  additions = new BitVector();
  removals = new BitVector();
}
origin: net.onedaybeard.artemis/artemis-odb

/**
 * Creates a new TagManager.
 */
public TagManager() {
  entitiesByTag = new HashMap<>();
  tagsByEntity = new HashMap<>();
  registered = new BitVector();
}
origin: junkdog/artemis-odb

Factory(World world, BitVector additions, BitVector removals) {
  this.cm = world.getComponentManager();
  this.additions = additions;
  this.removals = removals;
  this.bs = new BitVector();
}
origin: net.onedaybeard.artemis/artemis-odb

Factory(World world, BitVector additions, BitVector removals) {
  this.cm = world.getComponentManager();
  this.additions = additions;
  this.removals = removals;
  this.bs = new BitVector();
}
origin: junkdog/artemis-odb

public Object clone() {
  return new BitVector(clone(array));
}
origin: junkdog/artemis-odb

/** generate bitset mask of types. */
private static BitVector bitset(ComponentType[] types) {
  BitVector bs = new BitVector();
  for (int i = 0; types.length > i; i++)
    bs.set(types[i].getIndex());
    
  return bs;
}
origin: net.onedaybeard.artemis/artemis-odb

/** generate bitset mask of types. */
private static BitVector bitset(ComponentType[] types) {
  BitVector bs = new BitVector();
  for (int i = 0; types.length > i; i++)
    bs.set(types[i].getIndex());
    
  return bs;
}
origin: net.onedaybeard.artemis/artemis-odb

EntitySubscription(World world, Aspect.Builder builder) {
  extra = new SubscriptionExtra(builder.build(world), builder);
  activeEntityIds = new BitVector();
  entities = new IntBag();
  insertedIds = new BitVector();
  removedIds = new BitVector();
  EntityManager em = world.getEntityManager();
  em.registerEntityStore(activeEntityIds);
  em.registerEntityStore(insertedIds);
  em.registerEntityStore(removedIds);
}
origin: junkdog/artemis-odb

EntitySubscription(World world, Aspect.Builder builder) {
  extra = new SubscriptionExtra(builder.build(world), builder);
  activeEntityIds = new BitVector();
  entities = new IntBag();
  insertedIds = new BitVector();
  removedIds = new BitVector();
  EntityManager em = world.getEntityManager();
  em.registerEntityStore(activeEntityIds);
  em.registerEntityStore(insertedIds);
  em.registerEntityStore(removedIds);
}
origin: junkdog/artemis-odb

ComponentIdentityResolver() {
  compositionBits = new Bag(BitVector.class);
  compositionBits.add(new BitVector());
  compositionMappers = new Bag<Bag<ComponentMapper>>();
  compositionMappers.add(new Bag(ComponentMapper.class));
}
origin: junkdog/artemis-odb

ComponentIdentityResolver() {
  compositionBits = new Bag(BitVector.class);
  compositionBits.add(new BitVector());
  compositionMappers = new Bag<Bag<ComponentMapper>>();
  compositionMappers.add(new Bag(ComponentMapper.class));
}
origin: net.onedaybeard.artemis/artemis-odb

ComponentIdentityResolver() {
  compositionBits = new Bag(BitVector.class);
  compositionBits.add(new BitVector());
  compositionMappers = new Bag<Bag<ComponentMapper>>();
  compositionMappers.add(new Bag(ComponentMapper.class));
}
origin: junkdog/artemis-odb

  int allocateIdentity(BitVector componentBits, ComponentManager cm) {
    Bag<ComponentMapper> mappers =
      new Bag<ComponentMapper>(ComponentMapper.class, componentBits.cardinality());
    ComponentTypeFactory tf = cm.getTypeFactory();
    for (int i = componentBits.nextSetBit(0); i >= 0; i = componentBits.nextSetBit(i + 1)) {
      mappers.add(cm.getMapper(tf.getTypeFor(i).getType()));
    }
    compositionMappers.add(mappers);
    compositionBits.add(new BitVector(componentBits));
    return compositionBits.size() - 1;
  }
}
origin: net.onedaybeard.artemis/artemis-odb

  int allocateIdentity(BitVector componentBits, ComponentManager cm) {
    Bag<ComponentMapper> mappers =
      new Bag<ComponentMapper>(ComponentMapper.class, componentBits.cardinality());
    ComponentTypeFactory tf = cm.getTypeFactory();
    for (int i = componentBits.nextSetBit(0); i >= 0; i = componentBits.nextSetBit(i + 1)) {
      mappers.add(cm.getMapper(tf.getTypeFor(i).getType()));
    }
    compositionMappers.add(mappers);
    compositionBits.add(new BitVector(componentBits));
    return compositionBits.size() - 1;
  }
}
origin: junkdog/artemis-odb

  int allocateIdentity(BitVector componentBits, ComponentManager cm) {
    Bag<ComponentMapper> mappers =
      new Bag<ComponentMapper>(ComponentMapper.class, componentBits.cardinality());
    ComponentTypeFactory tf = cm.getTypeFactory();
    for (int i = componentBits.nextSetBit(0); i >= 0; i = componentBits.nextSetBit(i + 1)) {
      mappers.add(cm.getMapper(tf.getTypeFor(i).getType()));
    }
    compositionMappers.add(mappers);
    compositionBits.add(new BitVector(componentBits));
    return compositionBits.size() - 1;
  }
}
com.artemis.utilsBitVector<init>

Javadoc

Creates a bit set whose initial size is large enough to explicitly represent bits with indices in the range 0 through nbits-1.

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
  • 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 Sublime Text plugins
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