MongoDB C++ Driver legacy-1.1.2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
mongo::geo::MultiLineString< TCoordinates > Class Template Reference
+ Inheritance diagram for mongo::geo::MultiLineString< TCoordinates >:

Public Member Functions

 MultiLineString (const BSONObj &bson)
 MultiLineString constructor.
 
 MultiLineString (const std::vector< LineString< TCoordinates > > &lineStrings)
 MultiLineString constructor.
 
virtual BSONObj toBSON () const
 Obtain a BSON representation of the MultiLineString.
 
virtual BoundingBox< TCoordinates > getBoundingBox () const
 Obtain the bounding box surrounding this MultiLineString.
 
virtual GeoObjType getType () const
 Get the geometry type of this object.
 
std::vector< Point< TCoordinates > > getPoints () const
 Obtain the points that make up this MultiLineString.
 
std::vector< LineString< TCoordinates > > getLineStrings () const
 Obtain the line strings that make up this MultiLineString.
 
virtual BSONObj toBSON () const =0
 Obtain a BSON representation of this GeoObj.
 
virtual BoundingBox< TCoordinates > getBoundingBox () const =0
 Obtain the bounding box of this GeoObj.
 
virtual GeoObjType getType () const =0
 Get the geometry type of this object.
 

Additional Inherited Members

- Static Protected Member Functions inherited from mongo::geo::Geometry< TCoordinates >
static BoundingBox< TCoordinates > * computeBoundingBox (const std::vector< Point< TCoordinates > > &points)
 Compute the bounding box around the given points.
 
static BoundingBox< TCoordinates > * computeBoundingBox (const std::vector< BoundingBox< TCoordinates > > &bboxes)
 Compute the smallest bounding box that contains the given bounding boxes.
 
static BoundingBox< TCoordinates > * parseBoundingBox (const BSONObj &bson)
 Parses the bounding box defined by the given geometry shape, represented in BSON.
 

Constructor & Destructor Documentation

◆ MultiLineString() [1/2]

template<typename TCoordinates >
mongo::geo::MultiLineString< TCoordinates >::MultiLineString ( const BSONObj bson)
explicit

MultiLineString constructor.

Parameters
bsonA BSON representation of this MultiLineString.

◆ MultiLineString() [2/2]

template<typename TCoordinates >
mongo::geo::MultiLineString< TCoordinates >::MultiLineString ( const std::vector< LineString< TCoordinates > > &  lineStrings)
explicit

MultiLineString constructor.

Parameters
lineStringsthe LineStrings that collectively make up this MultiLineString.

Member Function Documentation

◆ getBoundingBox()

template<typename TCoordinates >
BoundingBox< TCoordinates > mongo::geo::MultiLineString< TCoordinates >::getBoundingBox
virtual

Obtain the bounding box surrounding this MultiLineString.

Returns
A bounding box surrounding this MultiLineString.

Implements mongo::geo::GeoObj< TCoordinates >.

◆ getLineStrings()

template<typename TCoordinates >
std::vector< LineString< TCoordinates > > mongo::geo::MultiLineString< TCoordinates >::getLineStrings

Obtain the line strings that make up this MultiLineString.

Returns
a vector of LineStrings making up this MultiLineString.

◆ getPoints()

template<typename TCoordinates >
std::vector< Point< TCoordinates > > mongo::geo::MultiLineString< TCoordinates >::getPoints

Obtain the points that make up this MultiLineString.

Returns
a vector of points making up this MultiLineString.

◆ getType()

template<typename TCoordinates >
virtual GeoObjType mongo::geo::MultiLineString< TCoordinates >::getType ( ) const
inlinevirtual

Get the geometry type of this object.

Returns
GeoObjType_MultiLineString

Implements mongo::geo::GeoObj< TCoordinates >.

◆ toBSON()

template<typename TCoordinates >
virtual BSONObj mongo::geo::MultiLineString< TCoordinates >::toBSON ( ) const
inlinevirtual

Obtain a BSON representation of the MultiLineString.

Returns
a BSON representation of the MultiLineString.

Implements mongo::geo::GeoObj< TCoordinates >.


The documentation for this class was generated from the following file: