# net::half_edge
描述着(某条格点上的)半边的信息,包括这条半边与哪条格点的哪条半边相连 More...
#include <node.hpp>
# Public Types
Name | |
---|---|
using typename std::map< EdgeKey, half_edge< NodeVal, EdgeVal, NodeKey, EdgeKey, Trait >, typename Trait::edgekey_less >::iterator | EdgeItrType |
# Public Functions
Name | |
---|---|
half_edge() | |
half_edge(const EdgeVal & E) | |
half_edge(const NodeKey & s1, const EdgeKey & s2, typename network< NodeVal, EdgeVal, NodeKey, EdgeKey, Trait >::IterNode s) | |
half_edge(const NodeKey & s1, const EdgeKey & s2, typename network< NodeVal, EdgeVal, NodeKey, EdgeKey, Trait >::IterNode s, const EdgeVal & E) | |
half_edge(const NodeKey & s1, const EdgeKey & s2, const EdgeVal & E) | |
half_edge(const half_edge< NodeVal, EdgeVal, NodeKey, EdgeKey, Trait > & ) =default |
# Public Attributes
Name | |
---|---|
int | nb_num 指这条半边所连接的半边的数目(目前仅支持nb_num=0/1) |
NodeKey | nbkey 所连接的半边从属的格点的名称(如果nb_num=1) |
EdgeKey | nbind 所连接的半边的名称(如果nb_num=1) |
network< NodeVal, EdgeVal, NodeKey, EdgeKey, Trait >::IterNode | nbitr 所连接的半边从属的格点的指针(如果nb_num=1) |
EdgeVal | val 边上的附着信息 |
EdgeItrType | nbegitr 所连接的半边的指针(如果nb_num=1) |
# Detailed Description
template <typename NodeVal ,
typename EdgeVal ,
typename NodeKey ,
typename EdgeKey ,
typename Trait >
struct net::half_edge;
描述着(某条格点上的)半边的信息,包括这条半边与哪条格点的哪条半边相连
Template Parameters:
- NodeVal 每个格点中附着的信息类型
- EdgeVal 每个边上附着的信息类型
- NodeKey 格点名字的类型
- EdgeKey 边的名字的类型
- Trait 以上类型的特征,包括输入输出和比较
See: node
# Public Types Documentation
# using EdgeItrType
using net::half_edge< NodeVal, EdgeVal, NodeKey, EdgeKey, Trait >::EdgeItrType = typename std::map<EdgeKey, half_edge<NodeVal, EdgeVal, NodeKey, EdgeKey, Trait>, typename Trait::edgekey_less>::iterator;
# Public Functions Documentation
# function half_edge
inline half_edge()
# function half_edge
inline half_edge(
const EdgeVal & E
)
# function half_edge
inline half_edge(
const NodeKey & s1,
const EdgeKey & s2,
typename network< NodeVal, EdgeVal, NodeKey, EdgeKey, Trait >::IterNode s
)
# function half_edge
inline half_edge(
const NodeKey & s1,
const EdgeKey & s2,
typename network< NodeVal, EdgeVal, NodeKey, EdgeKey, Trait >::IterNode s,
const EdgeVal & E
)
# function half_edge
inline half_edge(
const NodeKey & s1,
const EdgeKey & s2,
const EdgeVal & E
)
# function half_edge
half_edge(
const half_edge< NodeVal, EdgeVal, NodeKey, EdgeKey, Trait > &
) =default
# Public Attributes Documentation
# variable nb_num
int nb_num;
指这条半边所连接的半边的数目(目前仅支持nb_num=0/1)
# variable nbkey
NodeKey nbkey;
所连接的半边从属的格点的名称(如果nb_num=1)
# variable nbind
EdgeKey nbind;
所连接的半边的名称(如果nb_num=1)
# variable nbitr
network< NodeVal, EdgeVal, NodeKey, EdgeKey, Trait >::IterNode nbitr;
所连接的半边从属的格点的指针(如果nb_num=1)
# variable val
EdgeVal val;
边上的附着信息
# variable nbegitr
EdgeItrType nbegitr;
所连接的半边的指针(如果nb_num=1)
Updated on 15 June 2022 at 16:04:19 CST