Module pypcsim :: Class SimObjectPopulation
[hide private]
[frames] | no frames]

Class SimObjectPopulation

 object --+    
          |    
??.instance --+
              |
             SimObjectPopulation
Known Subclasses:

Help on SimObjectPopulation [class]:
 Simple population of SimObjects 
 
This is the simplest population class. It just holds an array of SimObjects, 
without any spatial coordinates or other identity attributes whatsoever. 
Individual SimObjects and their IDs can be retrieved by their population index 
number (integer value).

Instance Methods [hide private]
 
__call__(...)
Help on SimObject::ID SimObjectPopulation::operator()(int idx) const [member operator]
 
__getitem__(...)
Help on long long int SimObjectPopulation::operator[](int idx) const [member operator]
 
__init__(...)
Help on SimObjectPopulation::SimObjectPopulation(SimNetwork & net, SimObjectFactory & objFactory, size_t n) [constructor]
 
getID(...)
 
getNet(...)
Help on SimNetwork & SimObjectPopulation::getNet() const [member function]
 
idVector(...)
Help on std::vector<long long, std::allocator<long long> > const & SimObjectPopulation::idVector() const [member function]
 
localIndexes(...)
Help on std::vector<unsigned int, std::allocator<unsigned int> > * SimObjectPopulation::localIndexes() [member function]
 
localSubPopulation(...)
Help on boost::shared_ptr<SimObjectPopulation> SimObjectPopulation::localSubPopulation() [member function]
 
object(...)
Help on SimObject * SimObjectPopulation::object(int idx) const [member function]
 
record(...)
 
setFieldScale(...)
Help on bool SimObjectPopulation::setFieldScale(std::string const & fieldname, double scale) [member function]
 
size(...)
Help on size_t SimObjectPopulation::size() const [member function]
 
subset(...)
Help on boost::shared_ptr<SimObjectPopulation> SimObjectPopulation::subset(std::vector<unsigned int, std::allocator<unsigned int> > const & subindices) const [member function]

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  __instance_size__ = 32
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

Help on SimObjectPopulation::SimObjectPopulation(SimNetwork & net, SimObjectFactory & objFactory, size_t n) [constructor]

Help on SimObjectPopulation::SimObjectPopulation(SimNetwork & net, boost::shared_ptr<std::vector<long long, std::allocator<long long> > > const v) [constructor]

Help on SimObjectPopulation::SimObjectPopulation(SimNetwork & net, std::vector<long long, std::allocator<long long> > const & v) [constructor]

Overrides: object.__init__