Namespace for the Common module of TerraLib. More...
Namespaces | |
| lx | |
| uri | |
| win | |
Classes | |
| class | AbstractFactory |
| This class defines the interface of abstract factories without initializing parameters. More... | |
| class | AbstractParameters |
| Abstract parameters base interface. More... | |
| class | AbstractProgressViewer |
| A class that defines the interface of an abstract progress viewer. More... | |
| class | ApplicationSettings |
| A class for managing application settings. More... | |
| class | BaseVisitable |
| The root of all hierarchies that can be visited. More... | |
| class | BaseVisitor |
| A general root class for a visitor hierarchy. More... | |
| class | ClassLevelLockable |
| This policy assures a class-level locking scheme for a derived class. More... | |
| class | ConsoleProgressViewer |
| class | Counted |
| A counted class keeps track of how many abstract instances are pointing to it. More... | |
| class | Decorator |
| class | Distance |
| A given distance has a measurement and a unit-of-measure. More... | |
| class | Exception |
| This class is designed to declare objects to be thrown as exceptions by TerraLib. More... | |
| class | FactoryDictionary |
| This class represents a dictionary of factories. More... | |
| class | Globals |
| An static class with global definitions. More... | |
| struct | Holder |
| An auxiliary data structure for helping to control the garbage collection of C++ objects. More... | |
| struct | LessCmp |
| It implements several compare functions. More... | |
| struct | LessCmp< const char * > |
| struct | LessCmp< T * > |
| class | LoggedException |
| A class that automatically logs the exception message. More... | |
| class | Module |
| This singleton defines an entry in the Platform for the TerraLib Common Runtime module. More... | |
| struct | NodeT |
| Struct that represents a node in the Queue. More... | |
| class | NonLockable |
| This policy doesn't actually perform a lock. More... | |
| class | ObjectLevelLockable |
| This policy assures an object-level locking scheme for a derived class. More... | |
| class | ParameterizedAbstractFactory |
| This class defines the basic interface of an abstract factory that makes use of parameters to construct the objects. More... | |
| class | ProgressManager |
| A singleton class used to manage tasks progresses and their viewers. More... | |
| class | ProgressTimer |
| The ProgressTimer is a utility class that can be used to calculate the estimated time to finish a task. More... | |
| struct | QueueT |
| Struct that implements the generic queue. More... | |
| class | Singleton |
| Template support for singleton pattern. More... | |
| class | Static |
| A base type for static classes. More... | |
| class | SystemApplicationSettings |
| A singleton for managing application settings applied to the whole system (all users). More... | |
| class | TaskProgress |
| This class can be used to inform the progress of a task. More... | |
| class | TreeItem |
| This abstract class describes a basic item to be organized in a tree-oriented way. More... | |
| class | UnitOfMeasure |
| A class to represent units of measure. More... | |
| class | UnitsOfMeasureManager |
| A singleton class for dealing with units of measure in the TerraLib environment. More... | |
| class | URL |
| A class URL represents a Uniform Resource Locator, a pointer to a "resource" on the World Wide Web. A resource can be something as simple as a file or a directory, or it can be a reference to a more complicated object, such as a query to a database or to a search engine. This class is based on the MIT code uripp http://uripp.sourceforge.net/ . More... | |
| class | UserApplicationSettings |
| A singleton for managing application settings applied to a single user. More... | |
| class | Version |
| class | Visitor |
| A generic class for visitors. More... | |
Typedefs | |
| typedef boost::intrusive_ptr< TreeItem > | TreeItemPtr |
| typedef boost::shared_ptr< UnitOfMeasure > | UnitOfMeasurePtr |
Enumerations | |
| enum | { UOM_Metre = 9001, UOM_Foot = 9002, UOM_NauticalMile = 9030, UOM_Kilometre = 9036, UOM_Yard = 9096, UOM_Radian = 9101, UOM_Degree = 9102, UOM_Unity = 9201, UOM_SquareMetre = 9901, UOM_SquareFoot = 9902, UOM_SquareKilometre = 9903, UOM_Hectare = 9904, UOM_Acre = 9905 } |
| Defines some known UOM (Unit of Measure) codes. More... | |
| enum | { UNKNOWN_EXCEPTION = 0, NO_CONNECTION_AVAILABLE = 1 } |
| Common TerraLib Exception Codes. More... | |
| enum | { LAST_COMMON_EXCEPTION_CODE = NO_CONNECTION_AVAILABLE } |
| An anonymous union that marks the last common TerraLib Exception Code. More... | |
| enum | AccessPolicy { NoAccess = 0, RAccess = 1, WAccess = 2, RWAccess = 3 } |
| Supported data access policies (can be used as bitfield). More... | |
| enum | Hemisphere { NorthHem = 0, SouthHem = 1 } |
| enum | LoggerConfigurationType { LOGGER_XML_CONFIG, LOGGER_TXT_CONFIG } |
| Each enumerated type tells TerraLib how the configuration is done for a logger. More... | |
| enum | MachineByteOrder { XDR = 0, NDR = 1 } |
| Endianness. More... | |
| enum | MeasureType { Length, Area, Volume, Angle, Scale, Time, Speed } |
| Defines the possible types of unit of measurements. More... | |
| enum | TraverseType { FORWARDONLY = 0, BIDIRECTIONAL = 1, RANDOM = 2 } |
| A dataset can be traversed in two ways: More... | |
Functions | |
| template<class T > | |
| void | Clone (const std::vector< T * > &src, std::vector< T * > &dst) |
| This function can be applied to a vector of pointers. More... | |
| template<class T > | |
| bool | Contains (const std::vector< T > &src, const T &value) |
| TECOMMONEXPORT void | Convert (const boost::property_tree::ptree &p, std::map< std::string, std::string > &dict) |
| Converts a property tree node into a std::map<std::string, std::string>. More... | |
| TECOMMONEXPORT void | Convert (const boost::property_tree::ptree &p, std::vector< std::pair< std::string, std::string > > &vp) |
| Converts a property tree node into a std::vector<std::pair<std::string, std::string> > More... | |
| TECOMMONEXPORT void | Convert (const boost::property_tree::ptree &p, std::vector< std::string > &vect) |
| Converts a property tree node into a std::vector<std::string>. More... | |
| TECOMMONEXPORT void | Convert (const boost::property_tree::ptree &p, std::vector< unsigned char > &vectd) |
| Converts a property tree node into a std::vector<unsigned char>. More... | |
| TECOMMONEXPORT void | Convert (const boost::property_tree::ptree &p, std::vector< double > &vectd) |
| Converts a property tree node into a std::vector<double>. More... | |
| TECOMMONEXPORT void | Convert (const boost::property_tree::ptree &p, std::vector< size_t > &vectd) |
| Converts a property tree node into a std::vector<size_t>. More... | |
| TECOMMONEXPORT void | Convert (const boost::property_tree::ptree &p, std::vector< std::vector< double > > &vect) |
| Converts a property tree node into a std::vector<vector<std::string> >. More... | |
| TECOMMONEXPORT void | Convert (const boost::property_tree::ptree &p, std::vector< std::map< std::string, std::string > > &vectm) |
| Converts a property tree node into a std::vector<std::map<std::string, std::string> >. More... | |
| std::string | Convert2LCase (const std::string &value) |
| It converts a string to lower case. More... | |
| std::string | Convert2String (boost::int16_t value) |
| It converts a short integer value to a string. More... | |
| std::string | Convert2String (boost::uint16_t value) |
| It converts a unsigned short integer value to a string. More... | |
| std::string | Convert2String (boost::int32_t value) |
| It converts an integer value to a string. More... | |
| std::string | Convert2String (boost::uint32_t value) |
| It converts an unsigned integer value to a string. More... | |
| std::string | Convert2String (boost::int64_t value) |
| It converts a long value to a string. More... | |
| std::string | Convert2String (boost::uint64_t value) |
| It converts a unsigned long value to a string. More... | |
| std::string | Convert2String (float value) |
| It converts a double value to a string. More... | |
| std::string | Convert2String (double value) |
| It converts a double value to a string. More... | |
| std::string | Convert2String (double value, int precision) |
| It converts a double value to a string with a precision. More... | |
| std::string | Convert2UCase (const std::string &value) |
| It converts a string to upper case. More... | |
| void | Convert2UCaseInPlace (std::string &value) |
| It converts a string to upper case in place (it doesn't allocate an auxiliar buffer). More... | |
| template<class T > | |
| void | Copy (const std::vector< T * > &src, std::vector< T * > &dst) |
| This function can be applied to a vector of pointers. It will copy element by element through its copy constructor supposing a vector of pointers. More... | |
| char * | CreateCString (const std::string &s) |
| It converts the C++ string to a C-string. More... | |
| char ** | CreateCStringArray (const std::vector< std::string * > &vs) |
| It converts the C++ vector of string pointers to a C array os strings. More... | |
| char ** | CreateCStringArray (const std::vector< std::string > &vs) |
| It converts the C++ vector of string pointers to a C array os strings. More... | |
| template<class T > | |
| bool | EigenVectors (const boost::numeric::ublas::matrix< T > &inputMatrix, boost::numeric::ublas::matrix< T > &eigenVectorsMatrix, boost::numeric::ublas::matrix< T > &eigenValuesMatrix) |
| Computes the eigenvectors of a given matrix. More... | |
| void | ExtractKVP (const std::string &kvpStr, std::map< std::string, std::string > &kvp, const std::string &kvpDelimiter="&", const std::string &kvDelimiter="=", bool toUpper=false) |
| It extracts a key-value map from a string. More... | |
| template<class T > | |
| void | Free (std::vector< T * > *v) |
| This function can be applied to a pointer to a vector of pointers. More... | |
| void | Free (char **carray) |
| It releases the char array. More... | |
| template<class T > | |
| void | Free (T **a, std::size_t s) |
| It releases the given array. More... | |
| template<class T > | |
| void | FreeContents (const std::vector< T * > &v) |
| This function can be applied to a vector of pointers. It will delete each pointer in the vector. More... | |
| template<class K , class V > | |
| void | FreeContents (boost::unordered_map< K, V * > &m) |
| This function can be applied to a map of pointers. It will delete each pointer in the map. More... | |
| template<class T > | |
| void | FreeContents (std::list< T * > &l) |
| This function can be applied to a list of pointers. It will delete each pointer in the vector. More... | |
| template<class K , class V > | |
| void | FreeContents (std::map< K, V * > &m) |
| This function can be applied to a map of pointers. It will delete each pointer in the map. More... | |
| template<class V , class C > | |
| void | FreeContents (std::set< V *, C > &m) |
| This function can be applied to a map of pointers. It will delete each pointer in the map. More... | |
| template<class IT > | |
| void | FreeContents (IT it, IT itend) |
| This function can be applied to a vector of pointers. It will delete each pointer in the vector. More... | |
| TECOMMONEXPORT void | GetDecompostedLDPathEnvVar (std::vector< std::string > &paths) |
| Returns the system LD_LIBRARY_PATH enviroment variable, decomposed into directory names, or an empty vector if no values were found. More... | |
| TECOMMONEXPORT void | GetDecompostedPathEnvVar (std::vector< std::string > &paths) |
| Returns the system PATH enviroment variable, decomposed into directory names, or an empty vector if no values were found. More... | |
| template<class T > | |
| bool | GetDeterminant (const boost::numeric::ublas::matrix< T > &inputMatrix, double &determinant) |
| Get the Matrix determinant value. More... | |
| template<class T > | |
| bool | GetDeterminantComplex (const boost::numeric::ublas::matrix< T > &inputMatrix, T &determinant) |
| TECOMMONEXPORT unsigned long long int | GetFreePhysicalMemory () |
| Returns the amount of free physical memory (bytes). More... | |
| template<class T > | |
| bool | GetInverseMatrix (const boost::numeric::ublas::matrix< T > &inputMatrix, boost::numeric::ublas::matrix< T > &outputMatrix) |
| Matrix inversion. More... | |
| TECOMMONEXPORT unsigned int | GetPhysProcNumber () |
| Returns the number of physical processors. More... | |
| template<class K , class V > | |
| V ** | GetPPValue (std::map< K, V * > &m, const K &k) |
| It finds for a given key in the map and returns a pointer if something is found or NULL otherwise. More... | |
| template<class T > | |
| bool | GetPseudoInverseMatrix (const boost::numeric::ublas::matrix< T > &inputMatrix, boost::numeric::ublas::matrix< T > &outputMatrix) |
| Pseudo matrix inversion. More... | |
| template<class K , class V > | |
| V * | GetPValue (const std::map< K, V * > &m, const K &k) |
| It finds for a given key in the map and returns a pointer if something is found or NULL otherwise. More... | |
| template<class K , class C > | |
| K * | GetPValue (const std::set< K *, C > &m, K *k) |
| It finds for a given key in the map and returns a pointer if something is found or NULL otherwise. More... | |
| TECOMMONEXPORT unsigned long long int | GetTotalPhysicalMemory () |
| Returns the amount of total physical memory (bytes). More... | |
| TECOMMONEXPORT unsigned long long int | GetTotalVirtualMemory () |
| Returns the amount of total virtual memory (bytes) that can be claimed by the current process (physical + swapped). More... | |
| TECOMMONEXPORT unsigned long long int | GetUsedVirtualMemory () |
| Returns the amount of used virtual memory (bytes) for the current process (physical + swapped). More... | |
| void | intrusive_ptr_add_ref (Counted *p) |
| void | intrusive_ptr_release (Counted *p) |
| std::ostream & | operator<< (const Exception &e, std::ostream &o) |
| It serializes the exception and sends it to the output stream. More... | |
| std::string | ReplaceSpecialChars (const std::string &str, bool &changed) |
| It replace special characters of a string. More... | |
| template<typename InputValueT , typename OutputValueT > | |
| OutputValueT | Round (const InputValueT &inVal) |
| Round a value. More... | |
| TECOMMONEXPORT std::vector< std::string > | SplitString (const std::string &str, const char &delimiter) |
| template<class T > | |
| void | Swap2Bytes (T &v) |
| It swaps two bytes in local. More... | |
| void | Swap2Bytes (char *v) |
| It swaps an array of two bytes in local. More... | |
| template<class T > | |
| void | Swap4Bytes (T &v) |
| It swaps four bytes in local. More... | |
| void | Swap4Bytes (char *v) |
| It swaps an array of four bytes in local. More... | |
| void | Swap8Bytes (char *v) |
| It swaps an array of eight bytes in local. More... | |
| template<class T > | |
| void | SwapBytes (T &v) |
| It swaps the bytes in local. More... | |
| template<> | |
| void | SwapBytes (boost::int16_t &v) |
| It swaps 2 bytes in local. More... | |
| template<> | |
| void | SwapBytes (boost::int32_t &v) |
| It swaps four bytes in local. More... | |
| template<> | |
| void | SwapBytes (boost::uint32_t &v) |
| It swaps four bytes in local. More... | |
| template<> | |
| void | SwapBytes (float &v) |
| It swaps four bytes in local. More... | |
| void | Tokenize (const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters=" ") |
| It tokenizes a given string with a delimiter of your own choice. More... | |
Namespace for the Common module of TerraLib.
| typedef boost::intrusive_ptr<TreeItem> te::common::TreeItemPtr |
Definition at line 44 of file common/TreeItem.h.
| typedef boost::shared_ptr<UnitOfMeasure> te::common::UnitOfMeasurePtr |
Definition at line 213 of file UnitOfMeasure.h.
| anonymous enum |
Defines some known UOM (Unit of Measure) codes.
| Enumerator | |
|---|---|
| UOM_Metre | |
| UOM_Foot | |
| UOM_NauticalMile | |
| UOM_Kilometre | |
| UOM_Yard | |
| UOM_Radian | |
| UOM_Degree | |
| UOM_Unity | |
| UOM_SquareMetre | |
| UOM_SquareFoot | |
| UOM_SquareKilometre | |
| UOM_Hectare | |
| UOM_Acre | |
Definition at line 93 of file src/terralib/common/Enums.h.
| anonymous enum |
Common TerraLib Exception Codes.
| Enumerator | |
|---|---|
| UNKNOWN_EXCEPTION | |
| NO_CONNECTION_AVAILABLE | |
Definition at line 129 of file src/terralib/common/Enums.h.
| anonymous enum |
An anonymous union that marks the last common TerraLib Exception Code.
| Enumerator | |
|---|---|
| LAST_COMMON_EXCEPTION_CODE | |
Definition at line 136 of file src/terralib/common/Enums.h.
Supported data access policies (can be used as bitfield).
| Enumerator | |
|---|---|
| NoAccess |
No access allowed |
| RAccess |
Read-only access allowed |
| WAccess |
Write-only access allowed |
| RWAccess |
Read and write access allowed |
Definition at line 40 of file src/terralib/common/Enums.h.
| Enumerator | |
|---|---|
| NorthHem |
North hemisphere. |
| SouthHem |
South hemisphere. |
Definition at line 111 of file src/terralib/common/Enums.h.
Each enumerated type tells TerraLib how the configuration is done for a logger.
| Enumerator | |
|---|---|
| LOGGER_XML_CONFIG |
It indicates the use of a XML based configuration for a logger. |
| LOGGER_TXT_CONFIG |
It indicates the use of a plain text file based configuration for a logger. |
Definition at line 65 of file src/terralib/common/Enums.h.
Endianness.
| Enumerator | |
|---|---|
| XDR |
Big endian. |
| NDR |
Little endian. |
Definition at line 122 of file src/terralib/common/Enums.h.
Defines the possible types of unit of measurements.
Definition at line 76 of file src/terralib/common/Enums.h.
A dataset can be traversed in two ways:
Definition at line 53 of file src/terralib/common/Enums.h.
|
inline |
This function can be applied to a vector of pointers.
It will clone element by element supposing a vector of pointers.
| src | The source vector with pointers to be cloned. |
| dst | The target vector with cloned pointers. |
Definition at line 237 of file STLUtils.h.
Referenced by te::dt::CompositeData::CompositeData(), te::gm::CompoundCurve::CompoundCurve(), te::gm::CurvePolygon::CurvePolygon(), te::da::Function::Function(), te::gm::GeometryCollection::GeometryCollection(), te::vp::BufferDialog::onLayerComboBoxChanged(), te::vp::DissolveDialog::onLayerComboBoxChanged(), te::da::Function::operator=(), te::dt::CompositeData::operator=(), te::gm::GeometryCollection::operator=(), te::gm::PolyhedralSurface::operator=(), te::gm::CurvePolygon::operator=(), te::gm::CompoundCurve::operator=(), and te::gm::PolyhedralSurface::PolyhedralSurface().
|
inline |
Definition at line 265 of file STLUtils.h.
| void te::common::Convert | ( | const boost::property_tree::ptree & | p, |
| std::map< std::string, std::string > & | dict | ||
| ) |
Converts a property tree node into a std::map<std::string, std::string>.
| p | A node that can be converted to a std::map<std::string, std::string>. |
| dict | The dictionary to output the key-value pairs. |
Definition at line 36 of file BoostUtils.cpp.
Referenced by Convert(), FreeContents(), TsManagerDataSource::initialize(), TsHexUtils::setUp(), TsHexUtils::tcChar2Hex(), TsHexUtils::tcHex2Char(), and TsHexUtils::tcHex2Char2().
| void te::common::Convert | ( | const boost::property_tree::ptree & | p, |
| std::vector< std::pair< std::string, std::string > > & | vp | ||
| ) |
Converts a property tree node into a std::vector<std::pair<std::string, std::string> >
| p | A node that can be converted to a std::vector<std::pair<std::string, std::string> >. |
| vp | The vector of pairs returned. |
Definition at line 50 of file BoostUtils.cpp.
| void te::common::Convert | ( | const boost::property_tree::ptree & | p, |
| std::vector< std::string > & | vect | ||
| ) |
Converts a property tree node into a std::vector<std::string>.
| p | A node that can be converted to a std::vector<std::string>. |
| vect | The vector to output the values. |
Definition at line 64 of file BoostUtils.cpp.
| void te::common::Convert | ( | const boost::property_tree::ptree & | p, |
| std::vector< unsigned char > & | vectd | ||
| ) |
Converts a property tree node into a std::vector<unsigned char>.
| p | A node that can be converted to a std::vector<unsigned char>. |
| vectd | The vector to output the values. |
Definition at line 73 of file BoostUtils.cpp.
| void te::common::Convert | ( | const boost::property_tree::ptree & | p, |
| std::vector< double > & | vectd | ||
| ) |
Converts a property tree node into a std::vector<double>.
| p | A node that can be converted to a std::vector<double>. |
| vectd | The vector to output the values. |
Definition at line 82 of file BoostUtils.cpp.
| void te::common::Convert | ( | const boost::property_tree::ptree & | p, |
| std::vector< size_t > & | vectd | ||
| ) |
Converts a property tree node into a std::vector<size_t>.
| p | A node that can be converted to a std::vector<size_t>. |
| vectd | The vector to output the values. |
Definition at line 91 of file BoostUtils.cpp.
| void te::common::Convert | ( | const boost::property_tree::ptree & | p, |
| std::vector< std::vector< double > > & | vect | ||
| ) |
Converts a property tree node into a std::vector<vector<std::string> >.
| p | A node that can be converted to a std::vector<vector<std::string> >. |
| vect | The vector to output the values. |
Definition at line 100 of file BoostUtils.cpp.
References Convert().
| void te::common::Convert | ( | const boost::property_tree::ptree & | p, |
| std::vector< std::map< std::string, std::string > > & | vectm | ||
| ) |
Converts a property tree node into a std::vector<std::map<std::string, std::string> >.
| p | A node that can be converted to a std::vector<std::map<std::string, std::string> >. |
| vect | The vector to output the values. |
Definition at line 113 of file BoostUtils.cpp.
|
inline |
It converts a string to lower case.
| value | The string value to be converted. |
Definition at line 202 of file StringUtils.h.
Referenced by te::pgis::Transactor::addProperty(), te::qt::widgets::CloudDetectionDialog::applyPreview(), te::qt::plugins::terralib4::TL4ConverterWizard::commit(), te::pgis::Transactor::dropDataSet(), te::pgis::Transactor::dropProperty(), te::qt::widgets::CloudDetectionDialog::execute(), te::pgis::Transactor::getDataSetId(), te::qt::widgets::GetDiskRasterFileSelFilter(), te::qt::widgets::GetDiskVectorFileSelFilter(), te::pgis::Transactor::getGeometryInfo(), te::vp::MergeDialog::getPossibleAttributesComboBox(), te::pgis::Transactor::getPropertyId(), te::attributefill::VectorToVectorMemory::getPropertyName(), te::da::IsValidName(), te::qt::widgets::LoadArithmeticOpDialog::onOkPushButtonClicked(), te::vp::DifferenceDialog::onOkPushButtonClicked(), te::vp::IdentityDialog::onOkPushButtonClicked(), te::vp::DissolveDialog::onOkPushButtonClicked(), te::qt::widgets::LoadArithmeticOpDialog::onOperationComboBoxActivated(), te::pgis::PreparedQuery::PreparedQuery(), te::qt::widgets::WellKnownMarkRenderer::render(), te::graph::DataSourceGraphMetadata::saveGraphAttrTableNewEntry(), TsGeometry::tcAsText(), TsGeometry::tcTransform(), te::qt::plugins::terralib4::TL4ConverterWizard::validateCurrentPage(), and te::qt::plugins::terralib4::TL4ConverterWizard::validLayerNames().
|
inline |
It converts a short integer value to a string.
Definition at line 56 of file StringUtils.h.
Referenced by MainWindow::addDataSetLayer(), DisplayWindow::addGraph(), te::pgis::Transactor::addProperty(), te::pgis::Transactor::addSequence(), te::pgis::Convert2PostGIS(), ConvertDecimalToDegree(), te::tools::rastermanager::RasterManager::copyRaster(), te::gdal::Raster::create(), CreateDataSetLayer(), te::idl::createRasterFromIdlArray(), CreateRasterLayer(), te::sa::CreateSkaterGrouping(), te::mnt::Volume::CVGrd(), te::qt::widgets::DirectExchangerDialog::exchangeToDatabase(), te::qt::widgets::ColorTransformDialog::execute(), te::qt::widgets::ComposeBandsWizard::executeDecompose(), te::qt::widgets::ColorTransformDialog::executeHLS2RGB(), te::qt::widgets::ColorTransformDialog::executeIHS2RGB(), te::qt::widgets::ColorTransformDialog::executeRGB2HLS(), te::qt::widgets::ColorTransformDialog::executeRGB2IHS(), te::da::DataSet::getAsString(), te::pgis::Transactor::getConstraints(), te::pgis::Transactor::getDataSetName(), te::pgis::Transactor::getIndex(), te::pgis::Transactor::getIndexes(), te::pgis::Transactor::getIndexNames(), te::common::ProgressTimer::getMessage(), te::pgis::DataSet::getNumeric(), te::pgis::ConnectedDataSet::getNumeric(), te::pgis::Transactor::getPropertiesInfo(), te::pgis::Transactor::getProperty(), te::pgis::Transactor::getPropertyId(), te::tools::rastermanager::RasterManager::getRasterInfo(), GribExample(), te::map::GroupingByEqualSteps(), te::map::GroupingByQuantil(), te::map::GroupingByStdDeviation(), te::map::GroupingByUniqueValues(), te::tools::rastermanager::RasterManagerDialog::inputPushButton_clicked(), te::qt::widgets::isValidSRIDs(), te::qt::widgets::FilterDialogForm::listBands(), te::graph::AbstractGraphLoaderStrategy::loadEdge(), te::graph::AbstractGraphLoaderStrategy::loadVertexAttrs(), main(), MapDisplay(), te::qt::widgets::MixtureModelDialog::MixtureModelDialog(), te::qt::widgets::ArithmeticOpDialogForm::onAddLayerPushButtonClicked(), te::qt::widgets::RasterSymbolizerWidget::onCalcRasterSummaryClicked(), te::qt::widgets::QueryDataSourceDialog::onCreateLayerToolButtonClicked(), te::qt::widgets::LoadArithmeticOpDialog::onLayerComboBoxActivated(), te::qt::widgets::LoadArithmeticOpDialog::onOperationComboBoxActivated(), te::qt::widgets::ArithmeticOpDialogForm::onSavePushButtonClicked(), te::qt::widgets::ArithmeticOpDialogForm::onSignalPushButtonClicked(), te::qt::widgets::ArithmeticOpDialogForm::paramsFromOpUserdDef(), te::qt::widgets::DrawThread::run(), te::qt::widgets::CloudDetectionDialog::setCloudBands(), te::qt::widgets::CloudDetectionDialog::setCloudMinMax(), te::pgis::SetColumnDef(), te::qt::widgets::ContrastDialogForm::setDefaultValues(), te::qt::widgets::FilterDialogForm::setList(), te::qt::widgets::FilterDialogForm::setParams(), te::qt::widgets::CloudDetectionDialog::setShadowBands(), te::qt::widgets::CloudDetectionDialog::setShadowMinMax(), TsCanvas::tcPerformance(), TsLayerExplorer::tcPerformanceExplorer(), te::qt::widgets::PostClassificationWidget::thresholdSliderValueChanged(), te::qt::plugins::terramobile::IntFormItem::toString(), te::qt::plugins::terramobile::DoubleFormItem::toString(), te::dt::DateDuration::toString(), te::qt::widgets::TextPropertyItem::valueChanged(), and te::qt::widgets::PostClassificationWidget::weightSliderValueChanged().
|
inline |
It converts a unsigned short integer value to a string.
Definition at line 68 of file StringUtils.h.
|
inline |
It converts an integer value to a string.
Definition at line 80 of file StringUtils.h.
|
inline |
It converts an unsigned integer value to a string.
Definition at line 92 of file StringUtils.h.
|
inline |
It converts a long value to a string.
Definition at line 104 of file StringUtils.h.
|
inline |
It converts a unsigned long value to a string.
Definition at line 116 of file StringUtils.h.
|
inline |
It converts a double value to a string.
Definition at line 128 of file StringUtils.h.
|
inline |
It converts a double value to a string.
Definition at line 140 of file StringUtils.h.
|
inline |
It converts a double value to a string with a precision.
Definition at line 154 of file StringUtils.h.
|
inline |
It converts a string to upper case.
| value | The string value to be converted. |
Definition at line 168 of file StringUtils.h.
Referenced by te::ogr::Transactor::add(), te::sqlite::Convert2TerraLib(), te::mem::Raster::create(), te::qt::widgets::PluginSourceWriter::createConfigFile(), te::qt::widgets::PluginSourceWriter::createCppFile(), te::ogr::Transactor::createDataSet(), te::graph::FlowGraphBuilder::createVertexObjects(), te::qt::widgets::DirectExchangerDialog::exchangeToDatabase(), te::ag::Canvas::getData(), te::gdal::Transactor::getDataSetNames(), te::gdal::Transactor::getDataSetType(), DSInfo::getDataSourceParameters(), te::qt::widgets::GetDiskRasterFileSelFilter(), te::qt::widgets::GetDiskVectorFileSelFilter(), te::gdal::GetDriverName(), te::st::ObservationDataSetInfo::getDSId(), te::qt::widgets::PluginSourceWriter::getExportMacro(), te::gdal::GetGDALRasterDriversUCaseExt2DriversMap(), te::gdal::GetGDALVectorDriversUCaseExt2DriversMap(), te::sqlite::GetHiddenTables(), te::srs::SpatialReferenceSystemManager::getIdFromName(), te::srs::SpatialReferenceSystemManager::getIdFromP4Txt(), te::srs::SpatialReferenceSystemManager::getIdFromWkt(), te::ado::GetMonth(), te::ado::GetSystemDateTimeFormat(), te::map::GetWorldBoxInPlanar(), DSInfo::init(), te::qt::widgets::PluginSourceWriter::insertEndIfInfo(), te::qt::widgets::PluginSourceWriter::insertIfDefInfo(), te::qt::widgets::LoadArithmeticOpDialog::isDefaultArithmeticOperation(), te::da::IsValidName(), te::graph::AbstractGraphLoaderStrategyFactory::make(), te::graph::AbstractCachePolicyFactory::make(), te::rst::RasterFactory::make(), te::graph::AbstractGraphFactory::make(), te::xml::ReaderFactory::make(), te::xml::AbstractWriterFactory::make(), te::qt::widgets::QueryDataSourceDialog::onApplyPushButtonClicked(), te::qt::widgets::QueryDataSourceDialog::onCreateLayerToolButtonClicked(), te::qt::widgets::QueryDataSourceDialog::onExecutePushButtonClicked(), te::qt::widgets::GroupingWidget::onImportPushButtonClicked(), te::qt::widgets::LoadArithmeticOpDialog::onRemoveOperation(), te::qt::widgets::ArithmeticOpDialogForm::onSavePushButtonClicked(), te::qt::plugins::terramobile::BuilderFormsWizardPage::onTreeItemClicked(), te::mem::Raster::open(), te::stmem::DataSource::open(), te::graph::AbstractGraphFactory::open(), te::rst::RasterFactory::open(), te::qt::widgets::PluginBuilderWizard::pluginInfoPageCheck(), te::xml::ReaderFactory::setDefaultReader(), te::xml::AbstractWriterFactory::setDefaultWriter(), TsWKBReader::tcBasicGeometryMethods(), TsGeometry::tcBasicGeometryMethods(), ToGeographic(), ToPlanar(), te::gdal::Raster::transform(), TupleToStringUpperCaseConverter(), te::qt::widgets::RasterInfoWidget::updateRawRasterFileName(), and te::xerces::Writer::writeStartDocument().
|
inline |
It converts a string to upper case in place (it doesn't allocate an auxiliar buffer).
| value | The string value to be converted. |
Definition at line 187 of file StringUtils.h.
Referenced by ExtractKVP().
|
inline |
This function can be applied to a vector of pointers. It will copy element by element through its copy constructor supposing a vector of pointers.
| src | The source vector with pointers to be cloned. |
| dst | The target vector with cloned pointers. |
Definition at line 255 of file STLUtils.h.
Referenced by te::rst::RasterProperty::operator=(), and te::rst::RasterProperty::RasterProperty().
|
inline |
It converts the C++ string to a C-string.
| s | The C++ string to be converted to a char*. |
Definition at line 312 of file StringUtils.h.
|
inline |
It converts the C++ vector of string pointers to a C array os strings.
| vs | The C++ vector of string pointers to be converted to a char**. |
Definition at line 326 of file StringUtils.h.
|
inline |
It converts the C++ vector of string pointers to a C array os strings.
| vs | The C++ vector of string pointers to be converted to a char**. |
Definition at line 351 of file StringUtils.h.
| bool te::common::EigenVectors | ( | const boost::numeric::ublas::matrix< T > & | inputMatrix, |
| boost::numeric::ublas::matrix< T > & | eigenVectorsMatrix, | ||
| boost::numeric::ublas::matrix< T > & | eigenValuesMatrix | ||
| ) |
Computes the eigenvectors of a given matrix.
| inputMatrix | The input matrix. |
| eigenVectorsMatrix | The matrix where the eigenvectors will be stored. |
| eigenValuesMatrix | The matrix where the eigenvalues will be stored. |
Definition at line 250 of file MatrixUtils.h.
Referenced by te::rp::DirectPrincipalComponents(), and te::rp::MixtureModelPCAStrategy::execute().
|
inline |
It extracts a key-value map from a string.
| kvpStr | A string with key-value-pairs to be splitted. |
| kvp | A map to output the pairs: (parameter-name, parameter-value). |
| kvpDelimiter | The character used to delimit the key-value-pairs. |
| kvDelimiter | The character used to delimit a key from its value. |
| toUpper | If true the key will be converted to upper-case. The value case will not be touched. |
Definition at line 256 of file StringUtils.h.
References Convert2UCaseInPlace(), and Tokenize().
Referenced by te::wms::BuildLayersInfo(), and te::wms::ExtractRequestValues().
|
inline |
This function can be applied to a pointer to a vector of pointers.
It will delete each pointer in the vector and then delete the pointer to the vector.
| v | A pointer to a vector of pointers to be cleaned. |
Definition at line 131 of file STLUtils.h.
Referenced by te::map::CanvasConfigurer::config(), te::qt::widgets::Config2DrawPoints(), te::graph::LayerRenderer::configDefaultPoint(), te::graph::LayerRenderer::configLoopPoint(), te::map::AbstractLayerRenderer::drawDatSetGeometries(), te::map::QueryLayerRenderer::drawDatSetGeometries(), te::qt::widgets::DefaultFeatureInfoMaker::drawGeometry(), te::map::QueryLayerRenderer::drawLayerGroupingMem(), te::map::AbstractLayerRenderer::drawLayerGroupingMem(), te::map::QueryLayerRenderer::drawLayerLinkedGroupingMem(), te::wms::WMSLayerRenderer::drawRaster(), te::map::DrawRaster(), te::qt::widgets::MarkSymbol::drawSymbols(), te::qt::widgets::GlyphGraphicWidget::getGraphicIcon(), te::qt::widgets::WellKnownGraphicWidget::getGraphicIcon(), te::edit::Renderer::prepare(), te::qt::widgets::MixtureModelWizardPage::~MixtureModelWizardPage(), te::qt::widgets::TiePointLocatorWidget::~TiePointLocatorWidget(), and te::qt::widgets::ZoomInMapDisplayWidget::~ZoomInMapDisplayWidget().
|
inline |
It releases the char array.
| carray | A NULL terminated array of characters pointers. |
Definition at line 149 of file STLUtils.h.
|
inline |
It releases the given array.
| a | The array that will be released. |
| s | The array size. |
Definition at line 163 of file STLUtils.h.
|
inline |
This function can be applied to a vector of pointers. It will delete each pointer in the vector.
| v | The vector of pointers to be cleaned. |
Definition at line 49 of file STLUtils.h.
|
inline |
This function can be applied to a map of pointers. It will delete each pointer in the map.
| m | The map of pointers to be cleaned. |
Definition at line 55 of file BoostUtils.h.
References Convert(), p, and TECOMMONEXPORT.
Referenced by te::qt::widgets::RasterSlicingWizardPage::applyPreview(), te::rst::BandIteratorWindow< T >::BandIteratorWindow(), te::gm::WKTActions::buildLine(), te::gm::CascadedPolygonUnion(), te::v8::common::JsContextManager::clear(), te::qt::widgets::CreateLayerWidget::clear(), te::edit::Repository::clear(), te::qt::widgets::SymbolLibrary::clear(), te::qt::widgets::SymbolLibraryManager::clear(), te::map::ExternalGraphicRendererManager::clear(), te::rst::TileIndexer::clear(), te::da::ObjectIdSet::clear(), te::map::MarkRendererManager::clear(), te::da::DataSourceCatalog::clear(), te::qt::widgets::WhereClauseWidget::clear(), te::fe::Filter::clear(), te::color::ColorSchemeCatalogManager::clear(), te::se::Graphic::clear(), te::dt::CompositeProperty::clear(), te::gm::CurvePolygon::clear(), te::gm::GeometryCollection::clear(), te::edit::SnapManager::clearAll(), te::graph::GraphCache::clearCache(), te::da::DataSetType::clearCheckConstraints(), te::se::Rule::clearSymbolizers(), te::da::DataSetType::clearUniqueKeys(), te::mem::Raster::close(), te::grib::Raster::close(), te::sa::GPMConstructorAdjacencyStrategy::constructStrategy(), te::sa::GPMConstructorDistanceStrategy::constructStrategy(), te::mem::Raster::create(), te::gdal::Raster::create(), te::graph::RAGGraphBuilder::createEdgeObjects(), te::sa::CreateMatrixFromDataSet(), te::mnt::DouglasPeuckerTA(), te::sqlite::BatchExecutor::execute(), te::qt::widgets::ComposeBandsWizard::executeCompose(), te::qt::widgets::MosaicWizard::executeGeoMosaic(), te::vp::Union::executeMemory(), te::qt::widgets::MosaicWizard::executeSequenceMosaic(), te::pgis::ConnectionPool::finalize(), te::gm::FixGeometryTopology::fixSelfIntersection(), te::gm::GetAsMultiLineStringVector(), te::qt::widgets::ClassifierWizardPage::getInputParams(), te::attributefill::VectorToVectorMemory::getKDtree(), te::attributefill::VectorToVectorMemory::getMinimumDistance(), te::attributefill::VectorToVectorMemory::getRtree(), IndexPointUsingRTree(), te::gm::CompoundCurve::makeEmpty(), MakeHeader(), SelectionTool::mouseReleaseEvent(), te::qt::widgets::RasterizationWizardPage::onApplyPushButtonClicked(), te::qt::plugins::tv::TimeViewerEditLegendDialog::onApplyPushButtonClicked(), te::qt::widgets::GroupingWidget::onApplyPushButtonClicked(), MainWindow::onFileSelected(), te::vp::BufferDialog::onLayerComboBoxChanged(), te::vp::DissolveDialog::onLayerComboBoxChanged(), te::qt::widgets::MultiThreadMapDisplay::onRenderingFinished(), te::da::Function::operator=(), te::dt::CompositeData::operator=(), te::dt::Array::operator=(), te::dt::CompositeProperty::operator=(), te::gm::GeometryCollection::operator=(), te::gm::PolyhedralSurface::operator=(), te::gm::CurvePolygon::operator=(), te::st::Event::operator=(), te::gm::CompoundCurve::operator=(), te::rst::BandIteratorWindow< T >::operator=(), te::rst::RasterProperty::operator=(), te::gm::PrepareGeometriesToIntersection(), te::qt::widgets::MultiThreadMapDisplay::refresh(), te::edit::RepositoryManager::removeAll(), te::se::Style::removeRules(), te::edit::UndoStackManager::reset(), te::gm::WKTActions::reset(), te::edit::MoveGeometryTool::reset(), te::qt::af::ToolbarsWidget::resetState(), te::edit::MoveGeometryTool::resetVisualizationTool(), te::qt::widgets::MultiThreadMapDisplay::resizeEvent(), te::attributefill::VectorToVectorMemory::run(), te::edit::Feature::setData(), te::at::Text::setElements(), te::qt::widgets::GroupingWidget::setGrouping(), te::qt::plugins::terramobile::BuilderFormsWizardPage::setLayerList(), TsRTree::tcRTreeBox(), TsRTree::tcRTreeBox_2(), TsRTree::tcRTreeBox_3(), TsRTree::tcRTreeBox_4(), TsRTree::tcRTreeGradeInts(), TsRTree::tcRTreeInts(), TsRTree::tcRTreePointers(), TsRTree::tcRTreeUnsignedInts(), te::vp::Dissolve::threadUnion(), te::gm::Validate(), te::fe::ArithmeticOperators::~ArithmeticOperators(), te::dt::Array::~Array(), te::da::AttributeRestrictionVisitor::~AttributeRestrictionVisitor(), te::rst::BandIteratorWindow< T >::~BandIteratorWindow(), te::sqlite::BatchExecutor::~BatchExecutor(), te::fe::BinaryLogicOp::~BinaryLogicOp(), te::qt::plugins::terramobile::BuilderFormsWizardPage::~BuilderFormsWizardPage(), te::se::Categorize::~Categorize(), te::color::ColorScheme::~ColorScheme(), te::color::ColorSchemeCatalog::~ColorSchemeCatalog(), te::color::ColorSchemeGroup::~ColorSchemeGroup(), te::dt::CompositeData::~CompositeData(), te::dt::CompositeProperty::~CompositeProperty(), te::gm::CompoundCurve::~CompoundCurve(), te::se::Concatenate::~Concatenate(), te::pgis::ConnectionPool::ConnectionPoolImpl::~ConnectionPoolImpl(), te::gm::CurvePolygon::~CurvePolygon(), te::da::DataSetType::~DataSetType(), te::da::DataSourceCatalog::~DataSourceCatalog(), te::qt::widgets::DataSourceTreeModel::~DataSourceTreeModel(), te::dt::DataTypeManager::~DataTypeManager(), te::graph::Edge::~Edge(), te::se::ExternalGraphic::~ExternalGraphic(), te::edit::Feature::~Feature(), te::se::Fill::~Fill(), te::fe::Filter::~Filter(), te::se::Font::~Font(), te::qt::plugins::terramobile::Form::~Form(), te::da::Function::~Function(), te::fe::Function::~Function(), te::da::FunctionCatalog::~FunctionCatalog(), te::da::FunctionCatalogManager::~FunctionCatalogManager(), te::da::FunctionDefn::~FunctionDefn(), te::gm::GeometryCollection::~GeometryCollection(), te::graph::GraphData::~GraphData(), te::se::Graphic::~Graphic(), te::qt::widgets::GroupingWidget::~GroupingWidget(), te::se::Interpolate::~Interpolate(), te::edit::MoveGeometryTool::~MoveGeometryTool(), te::qt::widgets::MultiThreadMapDisplay::~MultiThreadMapDisplay(), te::da::ObjectIdSet::~ObjectIdSet(), te::se::ParameterValue::~ParameterValue(), te::plugin::PluginManager::~PluginManager(), te::gm::PolyhedralSurface::~PolyhedralSurface(), te::gdal::Raster::~Raster(), te::qt::widgets::RasterizationWizardPage::~RasterizationWizardPage(), te::rst::RasterProperty::~RasterProperty(), te::rst::RasterSummaryManager::~RasterSummaryManager(), te::se::Recode::~Recode(), te::cl::ROI::~ROI(), te::cl::ROISet::~ROISet(), te::se::Rule::~Rule(), te::sa::SamplePointsGeneratorStratified::~SamplePointsGeneratorStratified(), te::qt::plugins::terramobile::Section::~Section(), SelectionTool::~SelectionTool(), te::fe::SortBy::~SortBy(), te::fe::SpatialOperators::~SpatialOperators(), te::da::SpatialRestrictionVisitor::~SpatialRestrictionVisitor(), te::edit::SplitPolygonTool::~SplitPolygonTool(), te::da::SQLDialect::~SQLDialect(), te::se::Stroke::~Stroke(), te::se::Style::~Style(), te::qt::widgets::Symbol::~Symbol(), te::at::Text::~Text(), te::edit::UndoStackManager::~UndoStackManager(), te::attributefill::VectorToVectorMemory::~VectorToVectorMemory(), and te::graph::Vertex::~Vertex().
|
inline |
This function can be applied to a list of pointers. It will delete each pointer in the vector.
| l | The list of pointers to be cleaned. |
Definition at line 64 of file STLUtils.h.
|
inline |
This function can be applied to a map of pointers. It will delete each pointer in the map.
| m | The map of pointers to be cleaned. |
Definition at line 77 of file STLUtils.h.
|
inline |
This function can be applied to a map of pointers. It will delete each pointer in the map.
| m | The map of pointers to be cleaned. |
Definition at line 96 of file STLUtils.h.
|
inline |
This function can be applied to a vector of pointers. It will delete each pointer in the vector.
| v | The vector of pointers to be cleaned. |
Definition at line 115 of file STLUtils.h.
| void te::common::GetDecompostedLDPathEnvVar | ( | std::vector< std::string > & | paths | ) |
Returns the system LD_LIBRARY_PATH enviroment variable, decomposed into directory names, or an empty vector if no values were found.
| paths | The decomposed PATH. |
Definition at line 289 of file PlatformUtils.cpp.
References Tokenize().
| void te::common::GetDecompostedPathEnvVar | ( | std::vector< std::string > & | paths | ) |
Returns the system PATH enviroment variable, decomposed into directory names, or an empty vector if no values were found.
| paths | The decomposed PATH. |
Definition at line 268 of file PlatformUtils.cpp.
References Tokenize().
| bool te::common::GetDeterminant | ( | const boost::numeric::ublas::matrix< T > & | inputMatrix, |
| double & | determinant | ||
| ) |
Get the Matrix determinant value.
| inputMatrix | Input matrix. |
Definition at line 57 of file MatrixUtils.h.
References te::gm::A.
Referenced by te::rp::ClassifierEMStrategy::execute(), te::rp::ClassifierISOSegStrategy::fillRegionsThreadEntry(), te::rp::ClassifierISOSegStrategy::Pattern::getBhattacharyyaDistance(), TsMatrixUtils::GetDeterminant(), te::rp::ClassifierISOSegStrategy::Pattern::Pattern(), and te::cl::MAP::train().
| bool te::common::GetDeterminantComplex | ( | const boost::numeric::ublas::matrix< T > & | inputMatrix, |
| T & | determinant | ||
| ) |
Definition at line 96 of file MatrixUtils.h.
References te::gm::A.
| unsigned long long int te::common::GetFreePhysicalMemory | ( | ) |
Returns the amount of free physical memory (bytes).
Definition at line 68 of file PlatformUtils.cpp.
Referenced by te::qt::af::InternalSettingsDialog::setSystemInfo().
| bool te::common::GetInverseMatrix | ( | const boost::numeric::ublas::matrix< T > & | inputMatrix, |
| boost::numeric::ublas::matrix< T > & | outputMatrix | ||
| ) |
Matrix inversion.
| inputMatrix | Input matrix. |
| outputMatrix | Output matrix. |
Definition at line 143 of file MatrixUtils.h.
References te::gm::A.
Referenced by te::gm::RSTGT::computeParameters(), te::gm::ProjectiveGT::computeParameters(), te::gm::AffineGT::computeParameters(), te::rp::MixtureModelLinearStrategy::execute(), te::rp::ClassifierEMStrategy::execute(), te::rp::ClassifierISOSegStrategy::fillRegionsThreadEntry(), te::rp::ClassifierISOSegStrategy::Pattern::getBhattacharyyaDistance(), TsMatrixUtils::getInverseMatrix(), GetPseudoInverseMatrix(), te::rp::InversePrincipalComponents(), te::rp::ClassifierISOSegStrategy::Pattern::Pattern(), and te::cl::MAP::train().
| unsigned int te::common::GetPhysProcNumber | ( | ) |
Returns the number of physical processors.
Definition at line 249 of file PlatformUtils.cpp.
Referenced by te::gm::GTFilter::applyRansac(), te::rp::Skeleton::applyVecDiffusion(), te::rp::ClassifierISOSegStrategy::execute(), te::rp::SequenceMosaic::execute(), te::rp::Segmenter::execute(), te::rp::TiePointsLocatorMoravecStrategy::executeMatchingByCorrelation(), te::rp::TiePointsLocatorSURFStrategy::executeMatchingByEuclideanDist(), te::rp::GetCovarianceValue(), te::rp::GetMeanValue(), te::rp::GetStdDevValue(), te::rp::Blender::initialize(), te::rp::TiePointsLocatorMoravecStrategy::locateMoravecInterestPoints(), te::rp::TiePointsLocatorSURFStrategy::locateSurfInterestPoints(), te::rp::RemapValues(), te::qt::widgets::ThreadManager::run(), and te::qt::af::InternalSettingsDialog::setSystemInfo().
|
inline |
It finds for a given key in the map and returns a pointer if something is found or NULL otherwise.
| m | The map of pointers where the key will be searched. |
| k | The key. |
Definition at line 217 of file STLUtils.h.
| bool te::common::GetPseudoInverseMatrix | ( | const boost::numeric::ublas::matrix< T > & | inputMatrix, |
| boost::numeric::ublas::matrix< T > & | outputMatrix | ||
| ) |
Pseudo matrix inversion.
| inputMatrix | Input matrix. |
| outputMatrix | Output matrix. |
Definition at line 191 of file MatrixUtils.h.
References GetInverseMatrix().
Referenced by te::gm::SecondDegreePolynomialGT::computeParameters(), te::gm::ThirdDegreePolynomialGT::computeParameters(), and TsMatrixUtils::getPseudoInverseMatrix().
|
inline |
It finds for a given key in the map and returns a pointer if something is found or NULL otherwise.
| m | The map of pointers where the key will be searched. |
| k | The key. |
Definition at line 179 of file STLUtils.h.
Referenced by te::qt::widgets::DataSourceTypeManager::add(), te::da::FunctionCatalogManager::find(), te::da::FunctionCatalog::find(), te::da::SQLDialect::find(), te::qt::widgets::DataSourceTypeManager::get(), te::v8::common::JsContextManager::getCtx(), te::dt::Array::getData(), te::da::FunctionCatalogManager::insert(), te::da::SQLDialect::insert(), and te::dt::Array::operator[]().
|
inline |
It finds for a given key in the map and returns a pointer if something is found or NULL otherwise.
| m | The map of pointers where the key will be searched. |
| k | The key. |
Definition at line 197 of file STLUtils.h.
| unsigned long long int te::common::GetTotalPhysicalMemory | ( | ) |
Returns the amount of total physical memory (bytes).
Definition at line 110 of file PlatformUtils.cpp.
Referenced by te::rp::Blender::blendIntoRaster1(), te::rp::Segmenter::execute(), te::mem::ExpansibleRaster::ExpansibleRaster(), te::rp::TiePointsLocatorSURFStrategy::getAutoMaxTiePointsNumber(), te::rp::TiePointsLocatorMoravecStrategy::getAutoMaxTiePointsNumber(), te::rst::SynchronizedBandBlocksManager::initialize(), te::mem::CachedBandBlocksManager::initialize(), te::rp::Matrix< TemplateElementType >::reset(), and te::qt::af::InternalSettingsDialog::setSystemInfo().
| unsigned long long int te::common::GetTotalVirtualMemory | ( | ) |
Returns the amount of total virtual memory (bytes) that can be claimed by the current process (physical + swapped).
Definition at line 217 of file PlatformUtils.cpp.
References endif().
Referenced by te::rp::Blender::blendIntoRaster1(), te::rp::Segmenter::execute(), te::mem::ExpansibleRaster::ExpansibleRaster(), te::rp::TiePointsLocatorSURFStrategy::getAutoMaxTiePointsNumber(), te::rp::TiePointsLocatorMoravecStrategy::getAutoMaxTiePointsNumber(), te::rst::SynchronizedBandBlocksManager::initialize(), te::mem::CachedBandBlocksManager::initialize(), te::rp::Matrix< TemplateElementType >::reset(), and te::qt::af::InternalSettingsDialog::setSystemInfo().
| unsigned long long int te::common::GetUsedVirtualMemory | ( | ) |
Returns the amount of used virtual memory (bytes) for the current process (physical + swapped).
Definition at line 162 of file PlatformUtils.cpp.
Referenced by te::rp::Blender::blendIntoRaster1(), te::rp::Segmenter::execute(), te::mem::ExpansibleRaster::ExpansibleRaster(), te::rp::TiePointsLocatorSURFStrategy::getAutoMaxTiePointsNumber(), te::rp::TiePointsLocatorMoravecStrategy::getAutoMaxTiePointsNumber(), te::rst::SynchronizedBandBlocksManager::initialize(), te::mem::CachedBandBlocksManager::initialize(), te::rp::Matrix< TemplateElementType >::reset(), and te::qt::af::InternalSettingsDialog::setSystemInfo().
|
inline |
Definition at line 69 of file Counted.h.
References te::common::Counted::attach().
|
inline |
Definition at line 74 of file Counted.h.
References te::common::Counted::detach().
| std::ostream& te::common::operator<< | ( | const Exception & | e, |
| std::ostream & | o | ||
| ) |
It serializes the exception and sends it to the output stream.
| e | An exception object. |
| o | An output stream. |
Definition at line 66 of file src/terralib/common/Exception.cpp.
References te::common::Exception::getClassName(), and te::common::Exception::what().
|
inline |
It replace special characters of a string.
| str | The string that will be verify. |
| changed | Boolean that records whether there was a change. |
Definition at line 376 of file StringUtils.h.
References SplitString(), and TECOMMONEXPORT.
Referenced by terralib4::Convert2T5(), te::qt::widgets::DirectExchangerDialog::exchangeToDatabase(), te::qt::widgets::DirectExchangerDialog::exchangeToFile(), exportVectortoGPKG(), te::qt::plugins::terralib4::TL4ConverterWizard::finish(), te::attributefill::VectorToVectorMemory::normalizeClassName(), te::addressgeocoding::AddressGeocodingOp::run(), te::qt::plugins::terramobile::BuilderFormsWizardPage::setLayerList(), and te::qt::plugins::terralib4::TL4ConverterWizard::validateCurrentPage().
|
inline |
Round a value.
| val | The input value. |
Definition at line 46 of file MathUtils.h.
Referenced by te::rst::Copy().
| std::vector< std::string > te::common::SplitString | ( | const std::string & | str, |
| const char & | delimiter | ||
| ) |
Definition at line 32 of file StringUtils.cpp.
Referenced by te::ws::core::FormatToImageType(), te::ws::ogc::wms::GetLayerMapRaster(), te::ws::ogc::wms::GetMapRaster(), te::ws::core::IsInvertedEPSG(), te::ws::ogc::wms::WMS2Layer::operator()(), te::ws::ogc::wcs::XMLParser::parseDescribeCoverage(), te::ws::ogc::wms::version_1_1_1::XMLParser::parseDimension(), te::ws::ogc::wms::XMLParser::parseDimension(), and ReplaceSpecialChars().
|
inline |
It swaps two bytes in local.
| v | The value we want to swap. |
Definition at line 51 of file ByteSwapUtils.h.
Referenced by te::pgis::PreparedQuery::bind(), SwapBytes(), and TsByteSwapUtils::tcSwap2Bytes().
|
inline |
It swaps an array of two bytes in local.
| v | The value we want to swap. |
Definition at line 68 of file ByteSwapUtils.h.
|
inline |
It swaps four bytes in local.
| v | The value we want to swap. |
Definition at line 82 of file ByteSwapUtils.h.
Referenced by te::pgis::PreparedQuery::bind(), SwapBytes(), TsByteSwapUtils::tcSwap4Bytes(), te::gm::WKBWriter::visit(), and te::gm::Write2WKB().
|
inline |
It swaps an array of four bytes in local.
| v | The value we want to swap. |
Definition at line 101 of file ByteSwapUtils.h.
|
inline |
It swaps an array of eight bytes in local.
| v | The value we want to swap. |
Definition at line 139 of file ByteSwapUtils.h.
Referenced by te::pgis::PreparedQuery::bind(), TsByteSwapUtils::tcSwap8Bytes(), te::gm::WKBWriter::visit(), and te::gm::Write2WKB().
|
inline |
It swaps the bytes in local.
| v | The value we want to swap. |
Definition at line 119 of file ByteSwapUtils.h.
Referenced by te::pgis::GetArray(), te::pgis::DataSet::getArray(), te::pgis::ConnectedDataSet::getArray(), te::pgis::GetCoordSequence(), te::pgis::Transactor::getDataSet(), te::pgis::DataSet::getDateTime(), te::pgis::ConnectedDataSet::getDateTime(), te::pgis::DataSet::getDouble(), te::pgis::ConnectedDataSet::getDouble(), te::pgis::DataSet::getFloat(), te::pgis::ConnectedDataSet::getFloat(), te::pgis::EWKBReader::getGeometry(), te::gm::WKBReader::getGeometry(), te::pgis::EWKBReader::getGeometryCollection(), te::gm::WKBReader::getGeometryCollection(), te::pgis::DataSet::getInt16(), te::pgis::ConnectedDataSet::getInt16(), te::pgis::DataSet::getInt32(), te::pgis::ConnectedDataSet::getInt32(), te::pgis::DataSet::getInt64(), te::pgis::ConnectedDataSet::getInt64(), te::gm::WKBReader::getLinearRing(), te::pgis::EWKBReader::getLineString(), te::gm::WKBReader::getLineString(), te::pgis::DataSet::getNumeric(), te::pgis::ConnectedDataSet::getNumeric(), te::pgis::EWKBReader::getPoint(), te::gm::WKBReader::getPoint(), te::gm::WKBReader::getPointM(), te::gm::WKBReader::getPointZ(), te::gm::WKBReader::getPointZM(), te::pgis::EWKBReader::getPolygon(), te::gm::WKBReader::getPolygon(), te::gm::WKBReader::getPolyhedralSurface(), te::pgis::Transactor::query(), TsByteSwapUtils::tcSwapBytes(), TsByteSwapUtils::tcSwapBytes_bint16(), TsByteSwapUtils::tcSwapBytes_bint32(), TsByteSwapUtils::tcSwapBytes_buint32(), TsByteSwapUtils::tcSwapBytes_double(), TsByteSwapUtils::tcSwapBytes_float(), and te::gm::WKBWriter::visit().
|
inline |
It swaps 2 bytes in local.
| v | The value we want to swap. |
Definition at line 163 of file ByteSwapUtils.h.
References Swap2Bytes().
|
inline |
It swaps four bytes in local.
| v | The value we want to swap. |
Definition at line 173 of file ByteSwapUtils.h.
References Swap4Bytes().
|
inline |
It swaps four bytes in local.
| v | The value we want to swap. |
Definition at line 183 of file ByteSwapUtils.h.
References Swap4Bytes().
|
inline |
It swaps four bytes in local.
| v | The value we want to swap. |
Definition at line 193 of file ByteSwapUtils.h.
References Swap4Bytes().
|
inline |
It tokenizes a given string with a delimiter of your own choice.
| str | The string to be tokenize. |
| tokens | The output vector with the tokens. |
| delimiters | The character delimiters. |
Definition at line 221 of file StringUtils.h.
Referenced by te::pgis::DataSource::create(), te::xsd::serialize::CreateQName(), te::qt::widgets::DirectExchangerDialog::exchangeToDatabase(), te::qt::plugins::terramobile::GeoPackageBuilderWizard::execute(), te::qt::widgets::PCAWizard::execute(), te::vp::Identity::executeMemory(), ExtractKVP(), te::wms::GetBBOXValues(), te::map::GetDashStyle(), te::ado::GetDateTime(), GetDecompostedLDPathEnvVar(), GetDecompostedPathEnvVar(), te::qt::widgets::GetDiskRasterFileSelFilter(), te::qt::widgets::GetDiskVectorFileSelFilter(), te::gdal::GetGDALDriversMetadata(), te::qt::plugins::terralib4::GetGrouping(), te::sqlite::GetHiddenTables(), te::qt::af::GetLastFormerVersionPath(), te::qt::widgets::FileDialog::getMappedExtensions(), te::qt::plugins::terralib4::TL4ThemeSelectionWizardPage::getNames(), te::map::QueryLayer::getSchema(), te::vp::IntersectionDialog::getSelectedProperties(), te::vp::DifferenceDialog::getSelectedProperties(), te::vp::UnionDialog::getSelectedProperties(), te::attributefill::VectorToVectorDialog::getSelections(), te::qt::widgets::FusionWizardPage::getSRFMap(), te::tools::rastermanager::RasterManager::getSupportedExtensions(), te::qt::af::IsLowerVersion(), te::qt::widgets::QueryDataSourceDialog::onApplyPushButtonClicked(), te::qt::widgets::QueryDialog::onCreateLayerPushButtonClicked(), te::qt::widgets::QueryDataSourceDialog::onExecutePushButtonClicked(), te::qt::widgets::TiePointLocatorWidget::onLoadTiePointsToolButtonClicked(), te::attributefill::VectorToVectorDialog::onRejectAllComboBoxChanged(), te::attributefill::VectorToVectorDialog::onSelectAllComboBoxChanged(), te::xsd::serialize::ReadUnion(), te::map::MarkRendererManager::render(), te::vp::Save(), te::attributefill::RasterToVector::save(), te::ogr::SQLVisitor::visit(), te::gpkg::SQLVisitor::visit(), and te::ado::SQLVisitor::visit().