SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Classes | Typedefs | Functions
SCIRun::Core Namespace Reference

Namespaces

 Algorithms
 
 Basis
 
 CommandLine
 
 Commands
 
 Console
 
 Database
 
 Datatypes
 
 Geometry
 
 Logging
 
 Math
 
 Thread
 
 Utility
 

Classes

class  ApplicationPrivate
 
class  Application
 Application is the thread that processes all the actions in the program. More...
 
class  Preferences
 
class  HasId
 
class  PythonInterpreterPrivate
 
class  PythonInterpreter
 A wrapper class of the python interpreter. More...
 
struct  ExceptionBase
 
struct  NullPointerException
 
struct  OutOfRangeException
 
struct  InvalidArgumentException
 
struct  DimensionMismatch
 
struct  InvalidArgumentValue
 
struct  NotImplemented
 
struct  AssertionFailed
 
class  Lockable
 
class  RecursiveLockable
 
class  SharedLockable
 
class  Singleton
 NOTE: This singleton model requires that the project is linked statically. More...
 
struct  AtomicCounter
 

Typedefs

typedef boost::shared_ptr
< ApplicationPrivate
ApplicationPrivateHandle
 
typedef HasId< int, AtomicCounterHasIntegerId
 
typedef boost::shared_ptr
< PythonInterpreterPrivate
PythonInterpreterPrivateHandle
 
typedef boost::error_info
< struct tag_error_message,
std::string > 
ErrorMessage
 
typedef boost::error_info
< struct tag_null_object,
std::string > 
NullObjectInfo
 
typedef boost::error_info
< struct tag_file_not_found,
std::string > 
FileNotFound
 
typedef boost::error_info
< struct
tag_linear_algebra_error,
std::string > 
LinearAlgebraErrorMessage
 
typedef boost::error_info
< struct
tag_double_out_of_range,
boost::tuple< std::string,
double,
boost::numeric::interval
< double > > > 
DoubleOutOfRangeInfo
 
typedef boost::error_info
< struct tag_int_out_of_range,
boost::tuple< std::string, int,
boost::numeric::interval< int > > > 
IntOutOfRangeInfo
 
typedef boost::error_info
< struct
tag_dimension_mismatch,
std::string > 
DimensionMismatchInfo
 
typedef boost::error_info
< struct
tag_invalid_argument_value,
std::string > 
InvalidArgumentValueInfo
 
typedef boost::error_info
< struct tag_not_implemented,
std::string > 
NotImplementedInfo
 

Functions

bool fileContainsString (const std::string &filename, const std::string &str)
 
void replaceDelimitersWithWhitespace (std::string &line)
 
bool lineStartsWithComment (const std::string &line)
 
template<typename T >
std::vector< T * > toVectorOfRawPointers (const std::vector< boost::shared_ptr< T >> &vec)
 
template<typename T >
std::string to_string (const T &t)
 
template<typename T >
std::vector< T > parseLineOfNumbers (const std::string &line)
 
template<class T , class Iter >
std::vector< boost::shared_ptr
< T > > 
downcast_range (Iter begin, Iter end)
 
template<class T , class Cont >
std::vector< boost::shared_ptr
< T > > 
downcast_range (const Cont &container)
 
template<class T , class Iter >
std::vector< boost::shared_ptr
< T > > 
upcast_range (Iter begin, Iter end)
 
template<class T , class Cont >
std::vector< boost::shared_ptr
< T > > 
upcast_range (const Cont &container)
 

Typedef Documentation

typedef boost::shared_ptr<ApplicationPrivate> ApplicationPrivateHandle
typedef boost::error_info<struct tag_dimension_mismatch, std::string> DimensionMismatchInfo
typedef boost::error_info<struct tag_double_out_of_range, boost::tuple<std::string, double, boost::numeric::interval<double> > > DoubleOutOfRangeInfo
Todo:
make macro for various types
typedef boost::error_info<struct tag_error_message, std::string> ErrorMessage
typedef boost::error_info<struct tag_file_not_found, std::string> FileNotFound
typedef boost::error_info<struct tag_int_out_of_range, boost::tuple<std::string, int, boost::numeric::interval<int> > > IntOutOfRangeInfo
typedef boost::error_info<struct tag_invalid_argument_value, std::string> InvalidArgumentValueInfo
typedef boost::error_info<struct tag_linear_algebra_error, std::string> LinearAlgebraErrorMessage
Todo:
discuss location/type
typedef boost::error_info<struct tag_not_implemented, std::string> NotImplementedInfo
typedef boost::error_info<struct tag_null_object, std::string> NullObjectInfo

Function Documentation

std::vector<boost::shared_ptr<T> > SCIRun::Core::downcast_range ( Iter  begin,
Iter  end 
)
std::vector<boost::shared_ptr<T> > SCIRun::Core::downcast_range ( const Cont &  container)
bool SCIRun::Core::fileContainsString ( const std::string &  filename,
const std::string &  str 
)
inline
bool SCIRun::Core::lineStartsWithComment ( const std::string &  line)
inline
std::vector<T> SCIRun::Core::parseLineOfNumbers ( const std::string &  line)
void SCIRun::Core::replaceDelimitersWithWhitespace ( std::string &  line)
inline
Todo:
this code doesn't work under VS2010 - check with VS2012
std::string SCIRun::Core::to_string ( const T &  t)
std::vector<T*> SCIRun::Core::toVectorOfRawPointers ( const std::vector< boost::shared_ptr< T >> &  vec)
std::vector<boost::shared_ptr<T> > SCIRun::Core::upcast_range ( Iter  begin,
Iter  end 
)
std::vector<boost::shared_ptr<T> > SCIRun::Core::upcast_range ( const Cont &  container)