#include <orsa_universe.h>
Public Types | |
typedef std::vector< Evolution * >::iterator | iterator |
typedef std::vector< Evolution * >::const_iterator | const_iterator |
Public Member Functions | |
Universe () | |
Universe (length_unit, mass_unit, time_unit, UniverseType=Simulated, ReferenceSystem=ECLIPTIC, TimeScale=ET) | |
virtual | ~Universe () |
virtual unsigned int | size () const |
virtual void | push_back (Evolution *const e) |
virtual reference | operator[] (size_type n) |
virtual const_reference | operator[] (size_type n) const |
virtual void | clear () |
virtual iterator | begin () |
virtual iterator | end () |
virtual iterator | erase (iterator position) |
virtual const_iterator | begin () const |
virtual const_iterator | end () const |
UniverseType | GetUniverseType () const |
ReferenceSystem | GetReferenceSystem () const |
TimeScale | GetTimeScale () const |
Public Attributes | |
std::string | name |
std::string | description |
bool | modified |
Definition at line 165 of file orsa_universe.h.
typedef std::vector<Evolution*>::const_iterator const_iterator |
Definition at line 184 of file orsa_universe.h.
Definition at line 183 of file orsa_universe.h.
Universe | ( | ) |
Definition at line 56 of file orsa_universe.cc.
References orsa::AU, orsa::MSUN, and orsa::YEAR.
00056 : std::vector<Evolution*>(), type(Simulated), sys(ECLIPTIC), timescale(ET) { 00057 common_init(AU,MSUN,YEAR); 00058 }
Universe | ( | length_unit | , | |
mass_unit | , | |||
time_unit | , | |||
UniverseType | = Simulated , |
|||
ReferenceSystem | = ECLIPTIC , |
|||
TimeScale | = ET | |||
) |
Definition at line 60 of file orsa_universe.cc.
00060 : std::vector<Evolution*>(), type(ut), sys(rs), timescale(ts) { 00061 common_init(lu,mu,tu); 00062 }
~Universe | ( | ) | [virtual] |
Definition at line 103 of file orsa_universe.cc.
References Universe::size(), and orsa::universe.
00103 { 00104 /* 00105 int k; 00106 k = size(); 00107 while (k>0) { 00108 --k; 00109 if ((*this)[k]) (*this)[k]->clear(); 00110 } 00111 */ 00112 // NOTE: keep these two loops separate! 00113 int k = size(); 00114 while (k>0) { 00115 --k; 00116 delete (*this)[k]; 00117 (*this)[k] = 0; 00118 } 00119 00120 universe = 0; 00121 }
Here is the call graph for this function:
virtual const_iterator begin | ( | ) | const [inline, virtual] |
virtual iterator begin | ( | ) | [inline, virtual] |
virtual void clear | ( | ) | [inline, virtual] |
virtual const_iterator end | ( | ) | const [inline, virtual] |
virtual iterator end | ( | ) | [inline, virtual] |
ReferenceSystem GetReferenceSystem | ( | ) | const [inline] |
Definition at line 196 of file orsa_universe.h.
Referenced by orsa::Compute_Gauss(), Sky::Compute_J2000(), orsa::Compute_TestMethod(), JPLFile::GetEph(), TLEFile::Read(), NEODYSCAT::Read(), JPLDastcomCometFile::Read(), JPLDastcomUnnumFile::Read(), JPLDastcomNumFile::Read(), AstDySMatrixFile::Read(), MPCCometFile::Read(), MPCOrbFile::Read(), and AstorbFile::Read().
TimeScale GetTimeScale | ( | ) | const [inline] |
UniverseType GetUniverseType | ( | ) | const [inline] |
Definition at line 195 of file orsa_universe.h.
Referenced by UniverseTypeAwareTimeStep::absolute(), orsa::Compute(), Frame::ForceJPLEphemerisData(), UniverseTypeAwareTimeStep::GetDouble(), UniverseTypeAwareTime::GetTime(), Evolution::Integrate(), UniverseTypeAwareTimeStep::IsZero(), JPLPlanetsNewton::JPLPlanetsNewton(), UniverseTypeAwareTimeStep::operator+(), UniverseTypeAwareTime::operator+(), UniverseTypeAwareTime::operator+=(), UniverseTypeAwareTimeStep::operator-(), UniverseTypeAwareTime::operator-(), UniverseTypeAwareTime::operator-=(), UniverseTypeAwareTimeStep::operator<(), UniverseTypeAwareTime::operator<(), UniverseTypeAwareTime::operator<=(), UniverseTypeAwareTimeStep::operator==(), UniverseTypeAwareTime::operator==(), UniverseTypeAwareTimeStep::operator>(), UniverseTypeAwareTime::operator>(), UniverseTypeAwareTime::operator>=(), OrsaFile::Read(), orsa::StartFrame(), and OrsaFile::Write().
virtual const_reference operator[] | ( | size_type | n | ) | const [inline, virtual] |
virtual reference operator[] | ( | size_type | n | ) | [inline, virtual] |
virtual void push_back | ( | Evolution *const | e | ) | [inline, virtual] |
virtual unsigned int size | ( | ) | const [inline, virtual] |
Definition at line 176 of file orsa_universe.h.
Referenced by OrsaFile::Read(), and Universe::~Universe().
std::string description |
Definition at line 201 of file orsa_universe.h.
bool modified |
Definition at line 204 of file orsa_universe.h.
std::string name |
Definition at line 200 of file orsa_universe.h.