TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType > Class Template Reference

#include <TeBaseSTInstanceSet.h>


Detailed Description

template<typename GeometryType, typename TimeType, typename InstanceType>
class TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >

This abstract class implements a generic spatio-temporal instance set. It must be specialized according to the instance type (its geometry type, its time type and its own type).

See also:
TeBaseSTInstance TeTheme TeLayer

Definition at line 50 of file TeBaseSTInstanceSet.h.


Public Types

typedef vector
< InstanceType >
::iterator 
iterator
 An iterator that traverse each instance in the set.

Public Member Functions

virtual bool addProperty (const string &object_id, TeProperty &prop, TimeType &time, const int &slice=-1)
 Adds the property or sets its value in the object in a valid time and slice.
virtual bool addProperty (const string &object_id, TeProperty &prop, const int &slice=-1)
 Adds the property or sets its value in the object in a valid slice.
virtual bool addProperty (TeAttribute &attr)
 Adds a new attribute only in the attribute list.
virtual bool addProperty (TeAttributeRep &attr, const string &defaultValue)
 Adds a new attribute in the attribute list and adds it in all instances in the set using a default value.
propertyIterator begin (const int &attIndex)
 Returns a property iterator to the attIndex-th attribute of the first instance in the set.
propertyIterator begin (const string &attName)
 Returns a property iterator to the attribute named "attName" of the first instance in the set.
virtual iterator begin ()
 Returns an iterator to the first element of the set.
virtual bool build (TeGroupingAttr &groupAttr, bool loadGeometries=false, int slide=-1)
 Fills the ST instance set from a layer or theme, using the given filled parameters.
virtual bool build (bool loadGeometries=false, bool loadAllAttributes=true, vector< string > attrNames=vector< string >(), int slide=-1)
 Fills the ST instance set from a layer or theme, using the given filled parameters.
virtual void clear ()
 Clears the set.
void clearInstances ()
propertyIterator end (const int &attIndex)
 Returns a property iterator to the attIndex-th attribute of the one past last element of the set.
propertyIterator end (const string &attName)
 Returns a property iterator to the attribute named "attName" of the one past last element of the set.
virtual iterator end ()
 Returns an iterator to the one past last element of the set.
virtual int getAttributeIndex (const string &attrName)
 Returns the index of an attribute named "attrName".
virtual TeAttributeListgetAttributeList ()
 Gets the attribute list, that is, the description of all attributes.
virtual bool getAttributeValue (const string &object_id, const int &i, string &val, TimeType &time, const int &slice=-1)
 Gets the value of the i-th attribute of an object that is valid in a time and slice.
virtual bool getAttributeValue (const string &object_id, const int &i, string &val, const int &slice=-1)
 Gets the value of the i-th attribute of an object that is valid in a slice.
virtual bool getAttributeValue (const string &object_id, const string &attr_name, string &val, TimeType &time, const int &slice=-1)
 Get the value of the attribute named "attr_name" of an object that is valid in a time and slice.
virtual bool getAttributeValue (const string &object_id, const string &attr_name, string &val, const int &slice=-1)
 Get the value of the attribute named "attr_name" of an object that is valid in a slice.
virtual TeBoxgetBox ()
 Calculates the bounding box of all instances of all objects included in the set.
virtual bool getGeometry (const string &object_id, GeometryType &geom, TimeType &time, const int &slice=-1)
 Gets the geometry of an object in a specific time and slice.
virtual bool getGeometry (const string &object_id, GeometryType &geom, const int &slice=-1)
 Gets the geometry of an object in a specific slice.
virtual TeLayergetLayer ()
 Gets layer pointer.
virtual TimeType getMaxTime ()
 Gets maximal time.
virtual TimeType getMinTime ()
 Gets minimal time.
virtual bool getProperties (const string &object_id, vector< string > &values, TimeType &time, const int &slice=-1)
 Gets a vector of attribute values of a object that is valid in a time and slice.
virtual bool getProperties (const string &object_id, vector< string > &values, const int &slice=-1)
 Gets a vector of attribute values of a object that is valid in a slice.
virtual bool getPropertyVector (const string &object_id, TePropertyVector &propVec, TimeType &time, const int &slice=-1)
 Gets a vector of attributes or properties of a object that is valid in a time and slice.
virtual bool getPropertyVector (const string &object_id, TePropertyVector &propVec, const int &slice=-1)
 Gets a vector of attributes or properties of a object that is valid in a slice.
virtual InstanceType * getSTInstance (const string &objectId, TimeType &time, const int &slice=-1)
 Gets a pointer to a ST instance of an object in a specific time and slice.
virtual InstanceType * getSTInstance (const string &objectId, const int &slice=-1)
 Gets a pointer to a ST instance of an object in a specific slice.
virtual InstanceType * getSTInstance (const unsigned int &index)
 Gets a pointer to the index-th ST instance.
virtual void getSTInstances (vector< InstanceType * > &set, const int &slice)
 Gets pointers to all ST instances of a specific slice.
virtual void getSTInstances (vector< InstanceType * > &set, TimeType &time, const int &slice=-1)
 ! Gets pointers to all ST instances of a specific time
virtual void getSTInstances (vector< InstanceType * > &set, const string &objectId, TimeType &time, const int &slice=-1)
 Gets pointers to all ST instances of a specific object in a specific time and slice.
virtual void getSTInstances (vector< InstanceType * > &set, const string &objectId, const int &slice=-1)
 Gets pointers to all ST instances of a specific object in a specific slice.
virtual vector
< InstanceType > & 
getSTInstances ()
 Gets a reference to the instance set.
virtual TeThemegetTheme ()
 Gets theme pointer.
virtual bool insertSTInstance (InstanceType &object)
 Inserts a new ST instance in the set.
virtual int numElements ()
 Returns the number of elements or objects in the set.
virtual int numSTInstance (TimeType &time)
 Returns the number of instances in a specific time.
virtual int numSTInstance (const int &slice)
 Returns the number of instances in a specific slice.
virtual int numSTInstance (const string &objectId)
 Returns the number of instances of an object or element.
virtual int numSTInstance ()
 Returns the number of instances.
virtual
TeBaseSTInstanceSet
operator= (const TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType > &other)
 Assignment operator.
virtual void removeProperty (TeAttributeRep &attr)
 Removes an attribute of the attribute list and removes it of all instances in the set.
virtual bool search (const TeBox &b, vector< InstanceType * > &result)
 Searchs the instances which bounding boxes intersect a specific bounding box, using the R Tree.
virtual void setAttributeList (const TeAttributeList &attrs)
 Sets the attribute list, that is, the description of all attributes.
virtual bool setAttributeValue (const string &object_id, const int &i, const string &val, TimeType &time, const int &slice=-1)
 Sets the value of the i-th attribute of an object that is valid in a time and slice.
virtual bool setAttributeValue (const string &object_id, const int &i, const string &val, const int &slice=-1)
 Sets the value of the i-th attribute of an object that is valid in a slice.
virtual bool setAttributeValue (const string &object_id, const string &attr_name, const string &val, TimeType &time, const int &slice=-1)
 Sets the value of the attribute named "attr_name" of an object that is valid in a time and slice.
virtual bool setAttributeValue (const string &object_id, const string &attr_name, const string &val, const int &slice=-1)
 Sets the value of the attribute named "attr_name" of an object that is valid in a slice.
virtual void setBox (const TeBox &b)
 Sets the bounding box of all instances of all objects included in the set.
virtual bool setGeometry (const string &object_id, GeometryType &geom, TimeType &time, const int &slice=-1)
 Sets a geometry of an object in a specific time and slice.
virtual bool setGeometry (const string &object_id, GeometryType &geom, const int &slice=-1)
 Sets a geometry of an object in a specific slice.
virtual void setLayer (TeLayer *l)
 Sets layer pointer.
virtual void setMaxTime (TimeType &t)
 Sets maximal time.
virtual void setMinTime (TimeType &t)
 Sets minimal time.
virtual bool setProperties (const string &object_id, const vector< string > &values, TimeType &time, const int &slice=-1)
 Sets a vector of attribute values of a object that is valid in a time and slice.
virtual bool setProperties (const string &object_id, const vector< string > &values, const int &slice=-1)
 Sets a vector of attribute values of a object that is valid in a slice.
virtual void setTheme (TeTheme *t)
 Sets theme pointer.
 TeBaseSTInstanceSet (const TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType > &other)
 Copy constructor.
 TeBaseSTInstanceSet (const TeBox &box, const TeAttributeList &attrList=TeAttributeList())
 Constructor. It initializes the rTree based on the given box.
 TeBaseSTInstanceSet (TeLayer *layer, const TeAttributeList &attrList=TeAttributeList())
 Constructor. It initializes the rTree based on layer box.
 TeBaseSTInstanceSet (TeTheme *theme, const TeAttributeList &attrList=TeAttributeList())
 Constructor. It initializes the rTree based on theme box.
 TeBaseSTInstanceSet ()
 Constructor. It does not initialize the rTree.
TeThemetheme ()
 Deprecated: Returns a theme pointer.
virtual ~TeBaseSTInstanceSet ()
 Destructor.

Protected Member Functions

virtual bool buildImpl (TeQuerier *querier, const int &slide=-1)=0
 Builds the set using a given querier and a specific slice.

Protected Attributes

TeSharedPtr
< TeAttributeList
attrList_
 Description of all attributes.
TeBox box_
 A bounding box that contains all geometries of the spatial temporal instances.
vector< InstanceType > instances_
 Set of spatio temporal instances.
TeLayerlayer_
 A pointer to a layer.
TimeType maxTime_
 Maximal time associated to spatial temporal instances.
TimeType minTime_
 Minimal time associated to spatial temporal instances.
map< string, vector
< int > > 
objectIdToInstances_
 A map from object identity to its associated instances in the set.
TeSAM::TeRTree< int > * rTree_
 A struture to index the geometries: RTree.
map< int, vector< int > > sliceToInstances_
 A map from slice to its associated instances in the set.
TeThemetheme_
 A pointer to a theme.
map< TimeType,
vector< int > > 
timeToInstances_
 A map from time to its associated instances in the set.

Data Structures

class  propertyIterator
 This class implements an iterator concept over the instance set. More...

Member Typedef Documentation

template<typename GeometryType, typename TimeType, typename InstanceType>
typedef vector<InstanceType>::iterator TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::iterator

Definition at line 88 of file TeBaseSTInstanceSet.h.


Constructor & Destructor Documentation

template<typename GeometryType, typename TimeType, typename InstanceType>
TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::TeBaseSTInstanceSet (  )  [inline]

Definition at line 411 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_.

00411                                                                                :
00412           theme_(0),  layer_(0), rTree_(0)
00413 { 
00414         TeAttributeList* att = new TeAttributeList();
00415         attrList_ = TeSharedPtr<TeAttributeList>(att);
00416 }

template<typename GeometryType, typename TimeType, typename InstanceType>
TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::TeBaseSTInstanceSet ( TeTheme theme,
const TeAttributeList attrList = TeAttributeList() 
) [inline]

Definition at line 420 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_, TeAbstractTheme::box(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::layer_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::rTree_, and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::theme_.

00421 {
00422         layer_ = 0;
00423         theme_ = 0;
00424         rTree_ = 0;
00425         TeAttributeList* att = new TeAttributeList(attrList);
00426         attrList_ = TeSharedPtr<TeAttributeList>(att);
00427         if(!theme)
00428                 return;
00429         theme_ = theme;
00430         rTree_ = new TeSAM::TeRTree<int>(theme_->box());
00431 }

template<typename GeometryType, typename TimeType, typename InstanceType>
TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::TeBaseSTInstanceSet ( TeLayer layer,
const TeAttributeList attrList = TeAttributeList() 
) [inline]

Definition at line 434 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_, TeLayer::box(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::layer_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::rTree_, and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::theme_.

00435 {
00436         layer_ = 0;
00437         theme_ = 0;
00438         rTree_ = 0;
00439         TeAttributeList* att = new TeAttributeList(attrList);
00440         attrList_ = TeSharedPtr<TeAttributeList>(att);
00441         if(!layer)
00442                 return;
00443         layer_ = layer;
00444         rTree_ = new TeSAM::TeRTree<int>(layer_->box());
00445 }

template<typename GeometryType, typename TimeType, typename InstanceType>
TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::TeBaseSTInstanceSet ( const TeBox box,
const TeAttributeList attrList = TeAttributeList() 
) [inline]

Definition at line 449 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::box_, TeBox::isValid(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::layer_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::rTree_, and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::theme_.

00450 {
00451         layer_ = 0;
00452         theme_ = 0;
00453         rTree_ = 0;
00454         box_ = box;
00455         TeAttributeList* att = new TeAttributeList(attrList);
00456         attrList_ = TeSharedPtr< TeAttributeList >(att);
00457         if(!box_.isValid())
00458                 return;
00459         rTree_ = new TeSAM::TeRTree<int>(box);
00460 }

template<typename GeometryType, typename TimeType, typename InstanceType>
TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::TeBaseSTInstanceSet ( const TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType > &  other  )  [inline]

Definition at line 463 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::box_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::instances_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::layer_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::maxTime_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::minTime_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::objectIdToInstances_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::rTree_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::sliceToInstances_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::theme_, and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::timeToInstances_.

00464 {
00465         instances_ = other.instances_;          
00466         minTime_ = other.minTime_;
00467         maxTime_ = other.maxTime_;
00468         attrList_ = other.attrList_;
00469         theme_ = other.theme_;  
00470         layer_ = other.layer_;  
00471         box_ = other.box_;
00472         objectIdToInstances_ = other.objectIdToInstances_;
00473         timeToInstances_ = other.timeToInstances_;
00474         sliceToInstances_ = other.sliceToInstances_;
00475         rTree_ = 0;
00476                 
00477         if(other.rTree_)
00478         {
00479                 //Operador de copia nao implementado!
00480                 //rTree_ = new TeSAM::TeRTree<int>(other.rTree_->getBox());
00481                 //*rTree_ = *other.rTree_; 
00482         }
00483 }

template<typename GeometryType, typename TimeType, typename InstanceType>
TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::~TeBaseSTInstanceSet (  )  [inline, virtual]

Definition at line 486 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::rTree_.

00487 {
00488         if(rTree_)
00489                 delete rTree_;
00490 }


Member Function Documentation

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::addProperty ( const string object_id,
TeProperty prop,
TimeType &  time,
const int &  slice = -1 
) [inline, virtual]

If there is already the property in the attribute list, sets the value of the instances of an object valid in a specific time and slice. If there is no this property in the attribute list, adds it in the attribute list and in all instances in the set. After that, sets the value of the instances of an object valid in a specific time and slice.

Definition at line 1070 of file TeBaseSTInstanceSet.h.

References TeProperty::attr_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeIndex(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::instances_, TeAttributeRep::name_, TeAttribute::rep_, and TeProperty::value_.

01071 {
01072         int index = this->getAttributeIndex(prop.attr_.rep_.name_); 
01073         if(index<0)
01074         {
01075                 //adds this new attribute in the attr list and in all instances
01076                 attrList_->push_back(prop.attr_);
01077                 typename vector<InstanceType>::iterator it =    instances_.begin();             
01078                 while(it!=instances_.end())
01079                 {
01080                         if( (object_id == it->getObjectId()) && 
01081                                 (time == it->getTime()) && 
01082                                 ((slice<0) || (slice==it->getSlice())))  
01083                                 it->addPropertyValue(prop.value_);
01084                         else
01085                                 it->addPropertyValue(string(""));
01086                         ++it;
01087                 }
01088                 return true;
01089         }
01090         
01091         //Sets this attribute value
01092         typename vector<InstanceType>::iterator it =    instances_.begin();             
01093         while(it!=instances_.end())
01094         {
01095                 if( (object_id == it->getObjectId()) && 
01096                         (time == it->getTime()) && 
01097                         ((slice<0) || (slice==it->getSlice())))  
01098                         it->setPropertyValue(index, prop.value_);
01099                 ++it;
01100         }
01101         return true;
01102 }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::addProperty ( const string object_id,
TeProperty prop,
const int &  slice = -1 
) [inline, virtual]

If there is already the property in the attribute list, sets the value of the instances of an object valid in a specific slice. If there is no this property in the attribute list, adds it in the attribute list and in all instances in the set. After that, sets the value of the instances of an object valid in a specific slice.

Definition at line 1039 of file TeBaseSTInstanceSet.h.

References TeProperty::attr_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeIndex(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::instances_, TeAttributeRep::name_, TeAttribute::rep_, and TeProperty::value_.

01040 {
01041         int index = this->getAttributeIndex(prop.attr_.rep_.name_); 
01042         if(index<0)
01043         {
01044                 //adds this new attribute in the attr list and in all instances
01045                 attrList_->push_back(prop.attr_);
01046                 typename vector<InstanceType>::iterator it =    instances_.begin();             
01047                 while(it!=instances_.end())
01048                 {
01049                         if( (object_id == it->getObjectId()) && ((slice<0) || (slice==it->getSlice())))  
01050                                 it->addPropertyValue(prop.value_);
01051                         else
01052                                 it->addPropertyValue(string(""));
01053                         ++it;
01054                 }
01055                 return true;
01056         }
01057         
01058         //Sets this attribute value
01059         typename vector<InstanceType>::iterator it =    instances_.begin();             
01060         while(it!=instances_.end())
01061         {
01062                 if( (object_id == it->getObjectId()) && ((slice<0) || (slice==it->getSlice())))  
01063                         it->setPropertyValue(index, prop.value_);
01064                 ++it;
01065         }
01066         return true;
01067 }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::addProperty ( TeAttribute attr  )  [inline, virtual]

Definition at line 1030 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeIndex(), TeAttributeRep::name_, and TeAttribute::rep_.

01031 {
01032         //verify if there is this attribute
01033         if(getAttributeIndex(attr.rep_.name_)<0) 
01034                 attrList_->push_back(attr);
01035         return true;
01036 }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::addProperty ( TeAttributeRep attr,
const string defaultValue 
) [inline, virtual]

Definition at line 1006 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeIndex(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::instances_, TeAttributeRep::name_, and TeAttribute::rep_.

Referenced by TParticao::BFS_Salva(), TeFillCellCategoryAreaPercentageOperation(), TeFillCellCategoryCountPercentageRasterOperation(), TeFillCellDistanceOperation(), TeFillCellNonSpatialOperation(), TeFillCellNonSpatialRasterOperation(), and TeFillCellSpatialOperation().

01007 {
01008         //verify if there is this attribute
01009         if(getAttributeIndex(attr.name_)>=0) 
01010                 return true;
01011 
01012         TeAttribute at;
01013         at.rep_ = attr;
01014         attrList_->push_back(at);
01015         typename vector<InstanceType>::iterator it = instances_.begin();        
01016         
01017         //the number of attributes in each instance must be equal to the number of attibutes
01018         //in the attribute list.
01019         if((attrList_->size()-1) != it->getProperties().size())
01020                 return false;
01021         while(it!=instances_.end())
01022         {       
01023                 it->addPropertyValue(defaultValue);
01024                 ++it;
01025         }
01026         return true;
01027 }

template<typename GeometryType, typename TimeType, typename InstanceType>
propertyIterator TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::begin ( const int &  attIndex  )  [inline]

Definition at line 392 of file TeBaseSTInstanceSet.h.

00393         {
00394                 return propertyIterator(this, instances_.begin(), attIndex); 
00395         }

template<typename GeometryType, typename TimeType, typename InstanceType>
propertyIterator TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::begin ( const string attName  )  [inline]

Definition at line 386 of file TeBaseSTInstanceSet.h.

00387         {
00388                 return propertyIterator(this, instances_.begin(), attName); 
00389         }

template<typename GeometryType, typename TimeType, typename InstanceType>
virtual iterator TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::begin (  )  [inline, virtual]

Definition at line 297 of file TeBaseSTInstanceSet.h.

Referenced by TeProxMatrixKeepInBothTopologyStrategy::Construct(), TeProxMatrixChooseOneTopologyStrategy::Construct(), TeProxMatrixLocalTopologyStrategy::Construct(), TeProxMatrixOpenNetworkStrategy2::Construct(), TeProxMatrixOpenNetworkStrategy::Construct(), TeProxMatrixClosedNetworkStrategy::Construct(), TeProxMatrixNearestNeighbourStrategy::Construct(), TeProxMatrixLocalAdjacencyStrategy::Construct(), TeSTStatInstanceSet::Copy(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getBox(), main(), TSkaterGrafo::MontaGrafo(), TeCreateDissMatrix(), TeCreateMinimumTree(), TeCreateSubTrees(), TeFillCellAggregateOperation(), TeFillCellCategoryAreaPercentageOperation(), TeGraphNetwork::TeGraphNetwork(), and TeImportOGR().

00298         {       return instances_.begin(); }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::build ( TeGroupingAttr groupAttr,
bool  loadGeometries = false,
int  slide = -1 
) [inline, virtual]

Definition at line 1203 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::buildImpl(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::layer_, TeQuerierParams::setFillParams(), TeQuerierParams::setParams(), and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::theme_.

01204 {
01205         TeQuerierParams param;
01206         if(theme_)
01207                 param.setParams(theme_);
01208         else if(layer_)
01209                 param.setParams(layer_);
01210         else
01211                 return false;
01212 
01213         param.setFillParams(loadGeometries, groupAttr);
01214         TeQuerier querier(param);
01215         return(buildImpl(&querier, slide));
01216 }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::build ( bool  loadGeometries = false,
bool  loadAllAttributes = true,
vector< string attrNames = vector<string>(),
int  slide = -1 
) [inline, virtual]

Definition at line 1187 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::buildImpl(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::layer_, TeQuerierParams::setFillParams(), TeQuerierParams::setParams(), and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::theme_.

01188 {
01189         TeQuerierParams param;
01190         if(theme_)
01191                 param.setParams(theme_);
01192         else if(layer_)
01193                 param.setParams(layer_);
01194         else
01195                 return false;
01196 
01197         param.setFillParams(loadGeometries, loadAllAttributes, attrNames);
01198         TeQuerier querier(param);
01199         return(buildImpl(&querier, slide));
01200 }

template<typename GeometryType, typename TimeType, typename InstanceType>
virtual bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::buildImpl ( TeQuerier querier,
const int &  slide = -1 
) [protected, pure virtual]

Implemented in TeSTElementSet, and TeSTEventSet.

Referenced by TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::build().

template<typename GeometryType, typename TimeType, typename InstanceType>
void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::clear (  )  [inline, virtual]

Reimplemented in TeSTEventSet.

Definition at line 1156 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_, TeSAM::TeRTree< DATATYPE, MAXNODES, MINNODES >::clear(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::instances_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::objectIdToInstances_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::rTree_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::sliceToInstances_, and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::timeToInstances_.

Referenced by TeSTEventSet::clear(), TeFileTheme::clearData(), and TeImportOGR().

01157 {
01158         instances_.clear();
01159         attrList_->clear();
01160         objectIdToInstances_.clear();
01161         timeToInstances_.clear();
01162         sliceToInstances_.clear();
01163         if(rTree_)
01164                 rTree_->clear(); 
01165 }

template<typename GeometryType, typename TimeType, typename InstanceType>
void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::clearInstances (  )  [inline]

Definition at line 1168 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::instances_.

01169 {
01170         instances_.clear();
01171 }

template<typename GeometryType, typename TimeType, typename InstanceType>
propertyIterator TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::end ( const int &  attIndex  )  [inline]

Definition at line 404 of file TeBaseSTInstanceSet.h.

00405         {
00406                 return propertyIterator(this, instances_.end(), attIndex); 
00407         }

template<typename GeometryType, typename TimeType, typename InstanceType>
propertyIterator TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::end ( const string attName  )  [inline]

Definition at line 398 of file TeBaseSTInstanceSet.h.

00399         {
00400                 return propertyIterator(this, instances_.end(), attName); 
00401         }

template<typename GeometryType, typename TimeType, typename InstanceType>
virtual iterator TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::end (  )  [inline, virtual]

Definition at line 301 of file TeBaseSTInstanceSet.h.

Referenced by TeProxMatrixKeepInBothTopologyStrategy::Construct(), TeProxMatrixChooseOneTopologyStrategy::Construct(), TeProxMatrixLocalTopologyStrategy::Construct(), TeProxMatrixOpenNetworkStrategy2::Construct(), TeProxMatrixOpenNetworkStrategy::Construct(), TeProxMatrixClosedNetworkStrategy::Construct(), TeProxMatrixNearestNeighbourStrategy::Construct(), TeProxMatrixLocalAdjacencyStrategy::Construct(), TeSTStatInstanceSet::Copy(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getBox(), main(), TSkaterGrafo::MontaGrafo(), TeCreateDissMatrix(), TeCreateSubTrees(), TeFillCellAggregateOperation(), TeFillCellCategoryAreaPercentageOperation(), TeGraphNetwork::TeGraphNetwork(), and TeImportOGR().

00302         {       return instances_.end(); }

template<typename GeometryType, typename TimeType, typename InstanceType>
int TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeIndex ( const string attrName  )  [inline, virtual]

Definition at line 537 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_, and TeConvertToUpperCase().

Referenced by TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::addProperty(), TParticao::BFS_Salva(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeValue(), and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setAttributeValue().

00538 {
00539         string newName = TeConvertToUpperCase(attrName); 
00540         size_t pos = newName.find(".", 0, 1);
00541         if (pos != string::npos)
00542                 newName = TeConvertToUpperCase(attrName.substr(pos+1));
00543         
00544         for(unsigned int i=0; i<attrList_->size(); ++i)
00545         {
00546                 string s = TeConvertToUpperCase((*attrList_)[i].rep_.name_); 
00547                 if((s == TeConvertToUpperCase(attrName)) || (s == newName))
00548                         return i;
00549         }
00550         return -1;
00551 }

template<typename GeometryType, typename TimeType, typename InstanceType>
virtual TeAttributeList& TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeList (  )  [inline, virtual]

Definition at line 128 of file TeBaseSTInstanceSet.h.

Referenced by TeFillCellNonSpatialOperation().

00129         {       return (*attrList_);  }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeValue ( const string object_id,
const int &  i,
string val,
TimeType &  time,
const int &  slice = -1 
) [inline, virtual]

Definition at line 994 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_, aux, and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance().

00995 {
00996         if(i<0 || i>=(int)attrList_->size())
00997                 return false;
00998         InstanceType* aux = this->getSTInstance(object_id, time, slice);
00999         if(!aux)
01000                 return false;
01001         val = aux->getProperties()[i];
01002         return true;
01003 }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeValue ( const string object_id,
const int &  i,
string val,
const int &  slice = -1 
) [inline, virtual]

Definition at line 982 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_, aux, and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance().

00983 {
00984         if(i<0 || i>=(int)attrList_->size())
00985                 return false;
00986         InstanceType* aux = this->getSTInstance(object_id, slice);
00987         if(!aux)
00988                 return false;
00989         val = aux->getProperties()[i];
00990         return true;
00991 }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeValue ( const string object_id,
const string attr_name,
string val,
TimeType &  time,
const int &  slice = -1 
) [inline, virtual]

Definition at line 975 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeIndex(), and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeValue().

00976 {
00977         int index = this->getAttributeIndex(attr_name);
00978         return this->getAttributeValue(object_id, index, val, time, slice);
00979 }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeValue ( const string object_id,
const string attr_name,
string val,
const int &  slice = -1 
) [inline, virtual]

Definition at line 968 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeIndex().

Referenced by TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeValue().

00969 {
00970         int index = this->getAttributeIndex(attr_name);
00971         return this->getAttributeValue(object_id, index, val, slice);
00972 }

template<typename GeometryType, typename TimeType, typename InstanceType>
TeBox & TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getBox (  )  [inline, virtual]

Definition at line 1137 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::begin(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::box_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::end(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::instances_, TeBox::isValid(), and updateBox().

01138 {
01139         if(box_.isValid())
01140                 return box_;
01141 
01142         if (instances_.size() <= 0)
01143                 return box_;
01144 
01145         typename TeBaseSTInstanceSet<GeometryType, TimeType, InstanceType>::iterator it = this->begin();
01146         
01147         while (it != this->end())
01148         {
01149                 updateBox(box_,it->getGeometries().box());
01150                 ++it;
01151         }
01152         return box_;
01153 }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getGeometry ( const string object_id,
GeometryType &  geom,
TimeType &  time,
const int &  slice = -1 
) [inline, virtual]

Definition at line 827 of file TeBaseSTInstanceSet.h.

References aux, and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance().

00828 {
00829         InstanceType* aux = this->getSTInstance(object_id, time, slice);
00830         if(!aux)
00831                 return false;
00832         geom = aux->getGeometries(); 
00833         return true;
00834 }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getGeometry ( const string object_id,
GeometryType &  geom,
const int &  slice = -1 
) [inline, virtual]

Definition at line 816 of file TeBaseSTInstanceSet.h.

References aux, and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance().

00817 {
00818         InstanceType* aux = this->getSTInstance(object_id, slice);
00819         if(!aux)
00820                 return false;
00821         geom = aux->getGeometries(); 
00822         return true;
00823 
00824 }

template<typename GeometryType, typename TimeType, typename InstanceType>
virtual TeLayer* TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getLayer (  )  [inline, virtual]

Definition at line 150 of file TeBaseSTInstanceSet.h.

Referenced by TeProxMatrixKeepInBothTopologyStrategy::Construct(), TeProxMatrixChooseOneTopologyStrategy::Construct(), TeProxMatrixLocalTopologyStrategy::Construct(), and TeProxMatrixLocalAdjacencyStrategy::Construct().

00151         {       return layer_;  }

template<typename GeometryType, typename TimeType, typename InstanceType>
virtual TimeType TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getMaxTime (  )  [inline, virtual]

Definition at line 120 of file TeBaseSTInstanceSet.h.

00121         { return maxTime_; }

template<typename GeometryType, typename TimeType, typename InstanceType>
virtual TimeType TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getMinTime (  )  [inline, virtual]

Definition at line 112 of file TeBaseSTInstanceSet.h.

00113         { return minTime_; }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getProperties ( const string object_id,
vector< string > &  values,
TimeType &  time,
const int &  slice = -1 
) [inline, virtual]

Definition at line 919 of file TeBaseSTInstanceSet.h.

References aux, and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance().

00920 {
00921         values.clear();
00922         InstanceType* aux = this->getSTInstance(object_id, time, slice);
00923         if(!aux)
00924                 return false;
00925         values = aux->getProperties();
00926         return true;
00927 }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getProperties ( const string object_id,
vector< string > &  values,
const int &  slice = -1 
) [inline, virtual]

Definition at line 908 of file TeBaseSTInstanceSet.h.

References aux, and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance().

00909 {
00910         values.clear();
00911         InstanceType* aux = this->getSTInstance(object_id, slice);
00912         if(!aux)
00913                 return false;
00914         values = aux->getProperties();
00915         return true;
00916 }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getPropertyVector ( const string object_id,
TePropertyVector propVec,
TimeType &  time,
const int &  slice = -1 
) [inline, virtual]

Definition at line 857 of file TeBaseSTInstanceSet.h.

References TeProperty::attr_, aux, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance(), and TeProperty::value_.

00859 {
00860         propVec.clear();
00861         InstanceType* aux = this->getSTInstance(object_id, time, slice);
00862         if(!aux)
00863                 return false;
00864         
00865         for(unsigned int i=0; i<aux->getProperties().size(); ++i)
00866         {
00867                 TeProperty prop;
00868                 prop.value_ = aux->getProperties()[i];
00869                 if(i<attrList_->size())
00870                         prop.attr_ = (*attrList_)[i];
00871                 propVec.push_back(prop);
00872         }
00873         return true;
00874 
00875 }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getPropertyVector ( const string object_id,
TePropertyVector propVec,
const int &  slice = -1 
) [inline, virtual]

Definition at line 838 of file TeBaseSTInstanceSet.h.

References TeProperty::attr_, aux, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance(), and TeProperty::value_.

Referenced by TeCreateDissMatrix().

00839 {
00840         propVec.clear();
00841         InstanceType* aux = this->getSTInstance(object_id, slice);
00842         if(!aux)
00843                 return false;
00844         
00845         for(unsigned int i=0; i<aux->getProperties().size(); ++i)
00846         {
00847                 TeProperty prop;
00848                 prop.value_ = aux->getProperties()[i];
00849                 if(i<attrList_->size())
00850                         prop.attr_ = (*attrList_)[i];
00851                 propVec.push_back(prop);
00852         }
00853         return true;
00854 }

template<typename GeometryType, typename TimeType, typename InstanceType>
InstanceType * TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance ( const string objectId,
TimeType &  time,
const int &  slice = -1 
) [inline, virtual]

Definition at line 597 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::objectIdToInstances_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::sliceToInstances_, and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::timeToInstances_.

00598 {
00599         map<string, vector<int> >::iterator itObj = objectIdToInstances_.find(objectId);
00600         if(itObj==objectIdToInstances_.end())
00601                 return 0;
00602 
00603         typename map<TimeType, vector<int> >::iterator itTime = timeToInstances_.find(time);
00604         if(itTime==timeToInstances_.end())
00605                 return 0;
00606         
00607         if(slice<0)
00608         {
00609                 //The slice is not considered
00610                 vector<int>::iterator it = itObj->second.begin();
00611                 while(it != itObj->second.end())
00612                 {
00613                         vector<int>::iterator it2;
00614                         it2 = find(itTime->second.begin(), itTime->second.end(), *it);
00615                         if(it2!=itTime->second.end())
00616                                 return getSTInstance(*it2);
00617                         ++it;
00618                 }
00619                 return 0;
00620         }
00621         
00622         map<int, vector<int> >::iterator itSlice = sliceToInstances_.find(slice);
00623         if(itSlice==sliceToInstances_.end())
00624                 return 0;
00625 
00626         vector<int>::iterator it = itObj->second.begin();
00627         while(it != itObj->second.end())
00628         {
00629                 vector<int>::iterator it2, it3;
00630                 it2 = find(itTime->second.begin(), itTime->second.end(), *it);
00631                 it3 = find(itSlice->second.begin(), itSlice->second.end(), *it);
00632                 if((it2!=itTime->second.end()) && (it3!=itSlice->second.end()))
00633                         return getSTInstance(*it2);
00634                 ++it;
00635         }
00636         return 0;
00637 }

template<typename GeometryType, typename TimeType, typename InstanceType>
InstanceType * TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance ( const string objectId,
const int &  slice = -1 
) [inline, virtual]

Definition at line 565 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::objectIdToInstances_, and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::sliceToInstances_.

00566 {
00567         map<string, vector<int> >::iterator itObj = objectIdToInstances_.find(objectId);
00568         if(itObj==objectIdToInstances_.end())
00569                 return 0;
00570 
00571         if(slice<0)
00572         {
00573                 //The slice is not considered
00574                 vector<int>::iterator it = itObj->second.begin();
00575                 if(it==itObj->second.end())
00576                         return 0;
00577                 return getSTInstance(*it);
00578         }
00579 
00580         map<int, vector<int> >::iterator itSlice = sliceToInstances_.find(slice);
00581         if(itSlice==sliceToInstances_.end())
00582                 return 0;
00583 
00584         vector<int>::iterator it = itObj->second.begin();
00585         while(it != itObj->second.end())
00586         {
00587                 vector<int>::iterator it2;
00588                 it2 = find(itSlice->second.begin(), itSlice->second.end(), *it);
00589                 if(it2!=itSlice->second.end())
00590                         return getSTInstance(*it2);
00591                 ++it;
00592         }
00593         return 0;               
00594 }

template<typename GeometryType, typename TimeType, typename InstanceType>
InstanceType * TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance ( const unsigned int &  index  )  [inline, virtual]

Definition at line 556 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::instances_.

Referenced by TParticao::BFS_Salva(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeValue(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getGeometry(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getProperties(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getPropertyVector(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstances(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::search(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setAttributeValue(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setGeometry(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setProperties(), and TeCreateSubTrees().

00557 {
00558         if(index<instances_.size())
00559                 return &(instances_[index]);
00560 
00561         return 0;
00562 }

template<typename GeometryType, typename TimeType, typename InstanceType>
void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstances ( vector< InstanceType * > &  set,
const int &  slice 
) [inline, virtual]

Definition at line 698 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance(), and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::sliceToInstances_.

00699 {
00700         set.clear();
00701         map<int, vector<int> >::iterator itSlice = sliceToInstances_.find(slice);
00702         if(itSlice==sliceToInstances_.end())
00703                 return;
00704 
00705         vector<int>::iterator it = itSlice->second.begin();
00706         while(it != itSlice->second.end())
00707         {
00708                 set.push_back(getSTInstance(*it));
00709                 ++it;
00710         }
00711         return;
00712 }

template<typename GeometryType, typename TimeType, typename InstanceType>
void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstances ( vector< InstanceType * > &  set,
TimeType &  time,
const int &  slice = -1 
) [inline, virtual]

Definition at line 678 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance(), and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::timeToInstances_.

00679 {
00680         set.clear();
00681         typename map<TimeType, vector<int> >::iterator itTime = timeToInstances_.find(time);
00682         if(itTime==timeToInstances_.end())
00683                 return;
00684 
00685         vector<int>::iterator it = itTime->second.begin();
00686         while(it != itTime->second.end())
00687         {
00688                 InstanceType* inst = getSTInstance(*it);
00689                 if((slice<0) || (inst->getSlice()==slice))
00690                         set.push_back(inst);
00691                 ++it;
00692         }
00693         return;
00694 
00695 }

template<typename GeometryType, typename TimeType, typename InstanceType>
void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstances ( vector< InstanceType * > &  set,
const string objectId,
TimeType &  time,
const int &  slice = -1 
) [inline, virtual]

Definition at line 659 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance(), and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::objectIdToInstances_.

00660 {
00661         set.clear();
00662         map<string, vector<int> >::iterator itObj = objectIdToInstances_.find(objectId);
00663         if(itObj==objectIdToInstances_.end())
00664                 return;
00665 
00666         vector<int>::iterator it = itObj->second.begin();
00667         while(it != itObj->second.end())
00668         {
00669                 InstanceType* inst = getSTInstance(*it);
00670                 if(((slice<0) || (inst->getSlice()==slice)) && (inst->getTime()== time))
00671                         set.push_back(inst);
00672                 ++it;
00673         }
00674         return;
00675 }

template<typename GeometryType, typename TimeType, typename InstanceType>
void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstances ( vector< InstanceType * > &  set,
const string objectId,
const int &  slice = -1 
) [inline, virtual]

Definition at line 640 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance(), and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::objectIdToInstances_.

00641 {
00642         set.clear();
00643         map<string, vector<int> >::iterator itObj = objectIdToInstances_.find(objectId);
00644         if(itObj==objectIdToInstances_.end())
00645                 return;
00646 
00647         vector<int>::iterator it = itObj->second.begin();
00648         while(it != itObj->second.end())
00649         {
00650                 InstanceType* inst = getSTInstance(*it);
00651                 if((slice<0) || (inst->getSlice()==slice))
00652                         set.push_back(inst);
00653                 ++it;
00654         }
00655         return;
00656 }

template<typename GeometryType, typename TimeType, typename InstanceType>
virtual vector<InstanceType>& TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstances (  )  [inline, virtual]

Definition at line 158 of file TeBaseSTInstanceSet.h.

00159         {       return instances_; }

template<typename GeometryType, typename TimeType, typename InstanceType>
virtual TeTheme* TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getTheme (  )  [inline, virtual]

Definition at line 138 of file TeBaseSTInstanceSet.h.

Referenced by TeProxMatrixNearestNeighbourStrategy::Construct(), and TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::theme().

00139         {       return theme_;  }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::insertSTInstance ( InstanceType &  object  )  [inline, virtual]

Definition at line 715 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_, aux, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::box_, TeSAM::TeRTree< DATATYPE, MAXNODES, MINNODES >::insert(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::instances_, TeBox::isValid(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::objectIdToInstances_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::rTree_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::sliceToInstances_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::timeToInstances_, and updateBox().

Referenced by TeGeneralizedProxMatrix< Set >::getSTENeighbours(), TeOGRDriver::loadData(), TeDXFDriver::loadData(), TeShapefileDriver::loadData(), TeOGRDriver::loadNextElement(), TeCellInterpolate(), TeFillCellAggregateOperation(), TeFillCellConnectionOperation(), TeFillCellInitSTO(), and TeSTOSetBuildSHP().

00716 {
00717         inst.setAttrList(attrList_);
00718         instances_.push_back(inst);
00719         int index = (instances_.size()-1);
00720         vector<int> aux;
00721         aux.push_back(index);
00722         
00723         //object identity information
00724         map<string, vector<int> >::iterator itObj = objectIdToInstances_.find(inst.getObjectId());
00725         if(itObj!=objectIdToInstances_.end())
00726                 itObj->second.push_back(index);
00727         else
00728                 objectIdToInstances_[inst.getObjectId()] = aux;
00729 
00730         //time information
00731         if(inst.isTimeValid())
00732         {
00733                 typename map<TimeType, vector<int> >::iterator itTime = timeToInstances_.find(inst.getTime());
00734                 if(itTime!=timeToInstances_.end())
00735                         itTime->second.push_back(index);
00736                 else
00737                         timeToInstances_[inst.getTime()] = aux;
00738         }
00739 
00740         //slice information
00741         if(inst.getSlice()>=0)
00742         {
00743                 map<int, vector<int> >::iterator itSlice = sliceToInstances_.find(inst.getSlice());
00744                 if(itSlice!=sliceToInstances_.end())
00745                         itSlice->second.push_back(index);
00746                 else
00747                         sliceToInstances_[inst.getSlice()] = aux;
00748         }
00749         
00750         //insert in the RTree
00751         TeBox b = inst.getGeometries().box();
00752         if(b.isValid())
00753         {
00754                 if(rTree_)
00755                         rTree_->insert(b, index);
00756                 updateBox(box_, b);
00757         }
00758         return true;
00759 }

template<typename GeometryType, typename TimeType, typename InstanceType>
virtual int TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::numElements (  )  [inline, virtual]

Definition at line 198 of file TeBaseSTInstanceSet.h.

Referenced by main(), and TeImportOGR().

00199         {       return objectIdToInstances_.size(); }

template<typename GeometryType, typename TimeType, typename InstanceType>
int TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::numSTInstance ( TimeType &  time  )  [inline, virtual]

Definition at line 787 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::timeToInstances_.

00788 {
00789         typename map<TimeType, vector<int> >::iterator it = timeToInstances_.find(time);
00790         if(it==timeToInstances_.end())
00791                 return 0;
00792         return it->second.size();
00793 }

template<typename GeometryType, typename TimeType, typename InstanceType>
int TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::numSTInstance ( const int &  slice  )  [inline, virtual]

Definition at line 778 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::sliceToInstances_.

00779 {
00780         map<int, vector<int> >::iterator it = sliceToInstances_.find(slice);
00781         if(it==sliceToInstances_.end())
00782                 return 0;
00783         return it->second.size();
00784 }

template<typename GeometryType, typename TimeType, typename InstanceType>
int TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::numSTInstance ( const string objectId  )  [inline, virtual]

Definition at line 768 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::objectIdToInstances_.

00769 {
00770         map<string, vector<int> >::iterator it = objectIdToInstances_.find(objectId);
00771         if(it==objectIdToInstances_.end())
00772                 return 0;
00773         return it->second.size();
00774 
00775 }

template<typename GeometryType, typename TimeType, typename InstanceType>
int TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::numSTInstance (  )  [inline, virtual]

Definition at line 762 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::instances_.

Referenced by TeProxMatrixKeepInBothTopologyStrategy::Construct(), TeProxMatrixChooseOneTopologyStrategy::Construct(), TeProxMatrixLocalTopologyStrategy::Construct(), TeProxMatrixClosedNetworkStrategy::Construct(), TeProxMatrixNearestNeighbourStrategy::Construct(), TeProxMatrixLocalAdjacencyStrategy::Construct(), and TeCreateMinimumTree().

00763 {
00764         return instances_.size();
00765 }

template<typename GeometryType, typename TimeType, typename InstanceType>
TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType > & TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::operator= ( const TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType > &  other  )  [inline, virtual]

Definition at line 493 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::box_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::instances_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::layer_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::maxTime_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::minTime_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::objectIdToInstances_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::rTree_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::sliceToInstances_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::theme_, and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::timeToInstances_.

00494 {
00495         if ( this != &other )
00496         {
00497                 instances_ = other.instances_;          
00498                 minTime_ = other.minTime_;
00499                 maxTime_ = other.maxTime_;
00500                 attrList_ = other.attrList_;
00501                 theme_ = other.theme_;  
00502                 layer_ = other.layer_;  
00503                 box_ = other.box_;
00504                 objectIdToInstances_ = other.objectIdToInstances_;
00505                 timeToInstances_ = other.timeToInstances_;
00506                 sliceToInstances_ = other.sliceToInstances_;
00507                 if(rTree_)
00508                         delete rTree_;
00509                 rTree_ = 0;
00510                 
00511                 if(other.rTree_)
00512                 {
00513                         //Operador de copia nao implementado!
00514                         //rTree_ = new TeSAM::TeRTree<int>(other.rTree_->getBox());
00515                         //*rTree_ = *other.rTree_; 
00516                 }
00517         }
00518         return *this;
00519 }

template<typename GeometryType, typename TimeType, typename InstanceType>
void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::removeProperty ( TeAttributeRep attr  )  [inline, virtual]

Definition at line 1105 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_, TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::instances_, TeAttributeRep::name_, and TeConvertToUpperCase().

01106 {
01107         //Remove of the attribute list
01108         string newName = TeConvertToUpperCase(attr.name_); 
01109         size_t pos = attr.name_.find(".", 0, 1);
01110         if (pos != string::npos)
01111                 newName = TeConvertToUpperCase(attr.name_.substr(pos+1));
01112         
01113         unsigned int index = 0;
01114         TeAttributeList::iterator it = attrList_->begin();
01115         while(it!=attrList_->end())
01116         {
01117                 string s = TeConvertToUpperCase(it->rep_.name_); 
01118                 if((s == TeConvertToUpperCase(attr.name_)) || (s == newName))
01119                 {
01120                         attrList_->erase(it);
01121                         break;
01122                 }
01123                 ++it;
01124                 ++index;
01125         }
01126 
01127         //Remove of all instances
01128         typename vector<InstanceType>::iterator it2 = instances_.begin();               
01129         while(it2!=instances_.end())
01130         {
01131                 it2->removePropertyValue(index);
01132                 ++it2;
01133         }
01134 }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::search ( const TeBox b,
vector< InstanceType * > &  result 
) [inline, virtual]

Reimplemented in TeSTEventSet.

Definition at line 1174 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::rTree_, and TeSAM::TeRTree< DATATYPE, MAXNODES, MINNODES >::search().

Referenced by TeProxMatrixLocalAdjacencyStrategy::Construct(), and TeFillCellNonSpatialOperation().

01175 {
01176         if(!rTree_ )
01177                 return false;
01178 
01179         vector<int> intResult;
01180         rTree_->search(b, intResult);
01181         for(unsigned int i=0; i<intResult.size(); ++i)
01182                 result.push_back(getSTInstance(intResult[i])); 
01183         return true;
01184 }

template<typename GeometryType, typename TimeType, typename InstanceType>
void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setAttributeList ( const TeAttributeList attrs  )  [inline, virtual]

Definition at line 522 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_.

Referenced by TeOGRDriver::loadData(), TeImportOGR(), and TeSTOSetBuildSHP().

00523 {       
00524         if(!attrList_.isActive())
00525                 return;
00526         
00527         attrList_->clear();
00528         TeAttributeList::const_iterator it = attrs.begin();
00529         while(it!=attrs.end())
00530         {
00531                 attrList_->push_back(*it);
00532                 ++it;
00533         }
00534 }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setAttributeValue ( const string object_id,
const int &  i,
const string val,
TimeType &  time,
const int &  slice = -1 
) [inline, virtual]

Definition at line 956 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_, aux, and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance().

00957 {
00958         if(i<0 || i>=(int)attrList_->size()) //if there is not this attribute, return false 
00959                 return false;
00960         InstanceType* aux = this->getSTInstance(object_id, time, slice);
00961         if(!aux)
00962                 return false;
00963         aux->setPropertyValue(i, val); 
00964         return true;
00965 }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setAttributeValue ( const string object_id,
const int &  i,
const string val,
const int &  slice = -1 
) [inline, virtual]

Definition at line 944 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_, aux, and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance().

00945 {
00946         if(i<0 || i>=(int)attrList_->size()) //if there is not this attribute, return false 
00947                 return false;
00948         InstanceType* aux = this->getSTInstance(object_id, slice);
00949         if(!aux)
00950                 return false;
00951         aux->setPropertyValue(i, val); 
00952         return true;
00953 }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setAttributeValue ( const string object_id,
const string attr_name,
const string val,
TimeType &  time,
const int &  slice = -1 
) [inline, virtual]

Definition at line 937 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeIndex(), and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setAttributeValue().

00938 {
00939         int index = this->getAttributeIndex(attr_name);
00940         return this->setAttributeValue(object_id, index, val, time, slice);
00941 }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setAttributeValue ( const string object_id,
const string attr_name,
const string val,
const int &  slice = -1 
) [inline, virtual]

Definition at line 930 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeIndex().

Referenced by TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setAttributeValue().

00931 {
00932         int index = this->getAttributeIndex(attr_name);
00933         return this->setAttributeValue(object_id, index, val, slice);
00934 }

template<typename GeometryType, typename TimeType, typename InstanceType>
virtual void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setBox ( const TeBox b  )  [inline, virtual]

Definition at line 288 of file TeBaseSTInstanceSet.h.

00289         {       box_ = b; }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setGeometry ( const string object_id,
GeometryType &  geom,
TimeType &  time,
const int &  slice = -1 
) [inline, virtual]

Definition at line 806 of file TeBaseSTInstanceSet.h.

References aux, and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance().

00807 {
00808         InstanceType* aux = this->getSTInstance(object_id, time, slice);
00809         if(!aux)
00810                 return false;
00811         aux->setGeometry(geom);
00812         return true;
00813 }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setGeometry ( const string object_id,
GeometryType &  geom,
const int &  slice = -1 
) [inline, virtual]

Definition at line 796 of file TeBaseSTInstanceSet.h.

References aux, and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance().

00797 {
00798         InstanceType* aux = this->getSTInstance(object_id, slice);
00799         if(!aux)
00800                 return false;
00801         aux->setGeometry(geom);
00802         return true;
00803 }

template<typename GeometryType, typename TimeType, typename InstanceType>
virtual void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setLayer ( TeLayer l  )  [inline, virtual]

Definition at line 154 of file TeBaseSTInstanceSet.h.

00155         {       layer_ = l; }

template<typename GeometryType, typename TimeType, typename InstanceType>
virtual void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setMaxTime ( TimeType &  t  )  [inline, virtual]

Definition at line 124 of file TeBaseSTInstanceSet.h.

00125         { maxTime_ = t; } 

template<typename GeometryType, typename TimeType, typename InstanceType>
virtual void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setMinTime ( TimeType &  t  )  [inline, virtual]

Definition at line 116 of file TeBaseSTInstanceSet.h.

00117         { minTime_ = t; } 

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setProperties ( const string object_id,
const vector< string > &  values,
TimeType &  time,
const int &  slice = -1 
) [inline, virtual]

Definition at line 893 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_, aux, and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance().

00894 {
00895         //the number of attributes in each instance must be equal to the number of attibutes
00896         //in the attribute list. 
00897         if(values.size() != attrList_->size())
00898                 return false;
00899 
00900         InstanceType* aux = this->getSTInstance(object_id, time, slice);
00901         if(!aux)
00902                 return false;
00903         aux->setProperties(values);
00904         return true;
00905 }

template<typename GeometryType, typename TimeType, typename InstanceType>
bool TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setProperties ( const string object_id,
const vector< string > &  values,
const int &  slice = -1 
) [inline, virtual]

Definition at line 878 of file TeBaseSTInstanceSet.h.

References TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_, aux, and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance().

00879 {
00880         //the number of attributes in each instance must be equal to the number of attibutes
00881         //in the attribute list. 
00882         if(values.size() != attrList_->size())
00883                 return false;
00884 
00885         InstanceType* aux = this->getSTInstance(object_id, slice);
00886         if(!aux)
00887                 return false;
00888         aux->setProperties(values);
00889         return true;
00890 }

template<typename GeometryType, typename TimeType, typename InstanceType>
virtual void TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setTheme ( TeTheme t  )  [inline, virtual]

Definition at line 142 of file TeBaseSTInstanceSet.h.

00143         {       theme_ = t; }

template<typename GeometryType, typename TimeType, typename InstanceType>
TeTheme* TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::theme (  )  [inline]

Definition at line 146 of file TeBaseSTInstanceSet.h.

Referenced by TeProxMatrixKeepInBothTopologyStrategy::Construct(), TeProxMatrixChooseOneTopologyStrategy::Construct(), TeProxMatrixLocalTopologyStrategy::Construct(), TeProxMatrixLocalAdjacencyStrategy::Construct(), and TeProxMatrixOpenNetworkStrategy2::TeProxMatrixOpenNetworkStrategy2().

00147         {       return getTheme(); }


Field Documentation

template<typename GeometryType, typename TimeType, typename InstanceType>
TeSharedPtr<TeAttributeList> TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::attrList_ [protected]

Definition at line 64 of file TeBaseSTInstanceSet.h.

Referenced by TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::addProperty(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::clear(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeIndex(), TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::getAttributeList(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getAttributeValue(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::insertSTInstance(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::operator=(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::removeProperty(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setAttributeList(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setAttributeValue(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::setProperties(), and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::TeBaseSTInstanceSet().

template<typename GeometryType, typename TimeType, typename InstanceType>
TeBox TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::box_ [protected]

Definition at line 71 of file TeBaseSTInstanceSet.h.

Referenced by TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getBox(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::insertSTInstance(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::operator=(), TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::setBox(), and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::TeBaseSTInstanceSet().

template<typename GeometryType, typename TimeType, typename InstanceType>
vector<InstanceType> TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::instances_ [protected]

Definition at line 56 of file TeBaseSTInstanceSet.h.

Referenced by TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::addProperty(), TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::begin(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::clear(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::clearInstances(), TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::end(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getBox(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance(), TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::getSTInstances(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::insertSTInstance(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::numSTInstance(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::operator=(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::removeProperty(), and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::TeBaseSTInstanceSet().

template<typename GeometryType, typename TimeType, typename InstanceType>
TeLayer* TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::layer_ [protected]

Definition at line 69 of file TeBaseSTInstanceSet.h.

Referenced by TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::build(), TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::getLayer(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::operator=(), TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::setLayer(), and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::TeBaseSTInstanceSet().

template<typename GeometryType, typename TimeType, typename InstanceType>
TimeType TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::maxTime_ [protected]

Definition at line 61 of file TeBaseSTInstanceSet.h.

Referenced by TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::getMaxTime(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::operator=(), TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::setMaxTime(), and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::TeBaseSTInstanceSet().

template<typename GeometryType, typename TimeType, typename InstanceType>
TimeType TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::minTime_ [protected]

Definition at line 59 of file TeBaseSTInstanceSet.h.

Referenced by TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::getMinTime(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::operator=(), TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::setMinTime(), and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::TeBaseSTInstanceSet().

template<typename GeometryType, typename TimeType, typename InstanceType>
map<string, vector<int> > TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::objectIdToInstances_ [protected]

Definition at line 74 of file TeBaseSTInstanceSet.h.

Referenced by TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::clear(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstances(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::insertSTInstance(), TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::numElements(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::numSTInstance(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::operator=(), and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::TeBaseSTInstanceSet().

template<typename GeometryType, typename TimeType, typename InstanceType>
TeSAM::TeRTree<int>* TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::rTree_ [protected]

Definition at line 80 of file TeBaseSTInstanceSet.h.

Referenced by TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::clear(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::insertSTInstance(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::operator=(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::search(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::TeBaseSTInstanceSet(), and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::~TeBaseSTInstanceSet().

template<typename GeometryType, typename TimeType, typename InstanceType>
map<int, vector<int> > TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::sliceToInstances_ [protected]

Definition at line 78 of file TeBaseSTInstanceSet.h.

Referenced by TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::clear(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstances(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::insertSTInstance(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::numSTInstance(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::operator=(), and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::TeBaseSTInstanceSet().

template<typename GeometryType, typename TimeType, typename InstanceType>
TeTheme* TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::theme_ [protected]

Definition at line 67 of file TeBaseSTInstanceSet.h.

Referenced by TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::build(), TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::getTheme(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::operator=(), TeBaseSTInstanceSet< TeMultiGeometry, TeTimeInterval, TeSTInstance >::setTheme(), and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::TeBaseSTInstanceSet().

template<typename GeometryType, typename TimeType, typename InstanceType>
map<TimeType, vector<int> > TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::timeToInstances_ [protected]

Definition at line 76 of file TeBaseSTInstanceSet.h.

Referenced by TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::clear(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstance(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::getSTInstances(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::insertSTInstance(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::numSTInstance(), TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::operator=(), and TeBaseSTInstanceSet< GeometryType, TimeType, InstanceType >::TeBaseSTInstanceSet().


The documentation for this class was generated from the following file:
Generated on Sun Jul 29 04:05:28 2012 for TerraLib - Development Source by  doxygen 1.5.3