| ... | ... |
@@ -2212,31 +2212,24 @@ |
| 2212 | 2212 |
const std::string& arcSection(int i) const {
|
| 2213 | 2213 |
return _edge_sections[i]; |
| 2214 | 2214 |
} |
| 2215 | 2215 |
|
| 2216 | 2216 |
/// \brief Gives back the arc maps for the given section. |
| 2217 | 2217 |
/// |
| 2218 | 2218 |
/// Gives back the arc maps for the given section. |
| 2219 | 2219 |
/// \note It is synonim of \c edgeMaps(). |
| 2220 | 2220 |
const std::vector<std::string>& arcMaps(int i) const {
|
| 2221 | 2221 |
return _edge_maps[i]; |
| 2222 | 2222 |
} |
| 2223 | 2223 |
|
| 2224 |
/// \brief Returns true when the section type is \c "@arcs". |
|
| 2225 |
/// |
|
| 2226 |
/// Returns true when the section type is \c "@arcs", and not "@edges". |
|
| 2227 |
bool isArcSection(int i) const {
|
|
| 2228 |
return _arc_sections[i]; |
|
| 2229 |
} |
|
| 2230 |
|
|
| 2231 | 2224 |
/// @} |
| 2232 | 2225 |
|
| 2233 | 2226 |
/// \name Edge sections |
| 2234 | 2227 |
/// @{
|
| 2235 | 2228 |
|
| 2236 | 2229 |
/// \brief Gives back the number of edge sections in the file. |
| 2237 | 2230 |
/// |
| 2238 | 2231 |
/// Gives back the number of edge sections in the file. |
| 2239 | 2232 |
int edgeSectionNum() const {
|
| 2240 | 2233 |
return _edge_sections.size(); |
| 2241 | 2234 |
} |
| 2242 | 2235 |
|
| ... | ... |
@@ -2245,31 +2238,24 @@ |
| 2245 | 2238 |
/// Returns the section name at the given position. |
| 2246 | 2239 |
const std::string& edgeSection(int i) const {
|
| 2247 | 2240 |
return _edge_sections[i]; |
| 2248 | 2241 |
} |
| 2249 | 2242 |
|
| 2250 | 2243 |
/// \brief Gives back the edge maps for the given section. |
| 2251 | 2244 |
/// |
| 2252 | 2245 |
/// Gives back the edge maps for the given section. |
| 2253 | 2246 |
const std::vector<std::string>& edgeMaps(int i) const {
|
| 2254 | 2247 |
return _edge_maps[i]; |
| 2255 | 2248 |
} |
| 2256 | 2249 |
|
| 2257 |
/// \brief Returns true when the section type is \c "@edges". |
|
| 2258 |
/// |
|
| 2259 |
/// Returns true when the section type is \c "@edges", and not "@arcs". |
|
| 2260 |
bool isEdgeSection(int i) const {
|
|
| 2261 |
return !_arc_sections[i]; |
|
| 2262 |
} |
|
| 2263 |
|
|
| 2264 | 2250 |
/// @} |
| 2265 | 2251 |
|
| 2266 | 2252 |
/// \name Attribute sections |
| 2267 | 2253 |
/// @{
|
| 2268 | 2254 |
|
| 2269 | 2255 |
/// \brief Gives back the number of attribute sections in the file. |
| 2270 | 2256 |
/// |
| 2271 | 2257 |
/// Gives back the number of attribute sections in the file. |
| 2272 | 2258 |
int attributeSectionNum() const {
|
| 2273 | 2259 |
return _attribute_sections.size(); |
| 2274 | 2260 |
} |
| 2275 | 2261 |
|
0 comments (0 inline)