libwordring
公開型 | 静的公開メンバ関数 | 全メンバ一覧
wordring::html::simple_node_traits< NodeIterator > クラステンプレート

node_traits のテンプレート特殊化 [詳解]

#include <wordring/html/simple_traits.hpp>

公開型

using node_pointer = NodeIterator
 
using node_type = typename node_pointer::value_type
 
using element_type = typename node_type::element_type
 
using text_type = typename node_type::text_type
 
using processing_instruction_type = typename node_type::processing_instruction_type
 
using comment_type = typename node_type::comment_type
 
using document_type = typename node_type::document_type
 
using document_type_type = typename node_type::document_type_type
 
using document_fragment_type = typename node_type::document_fragment_type
 
using attribute_type = typename element_type::attribute_type
 
using attribute_pointer = typename element_type::const_iterator
 
using string_type = typename element_type::string_type
 

静的公開メンバ関数

static node_pointer pointer ()
 NULLで初期化された空のポインタを作成する
 
static node_pointer parent (node_pointer it)
 親要素を返す [詳解]
 
static node_pointer begin (node_pointer it)
 最初の子を返す
 
static node_pointer end (node_pointer it)
 最後の子の次を返す
 
static node_pointer prev (node_pointer it)
 前の兄弟を返す
 
static node_pointer next (node_pointer it)
 次の兄弟を返す
 
static auto & data (node_pointer it)
 
static auto target (node_pointer it)
 
static auto name (node_pointer it)
 
static bool is_element (node_pointer it)
 
static void set_document (node_pointer it, node_pointer doc)
 要素へオーナー文書を設定する [詳解]
 
static ns_name get_namespace_name (node_pointer it)
 要素の名前空間を返す
 
static string_type get_namespace (node_pointer it)
 
static tag_name get_local_name_name (node_pointer it)
 要素のローカル名を返す
 
static string_type get_local_name (node_pointer it)
 
static string_type get_qualified_name (node_pointer it)
 
static bool is_html_element_of (node_pointer it, tag_name tag)
 
static bool equals (node_pointer lhs, node_pointer rhs)
 二つの要素が同じシグネチャを持つか調べる [詳解]
 
static auto abegin (node_pointer it)
 要素ノードから最初の属性を指すイテレータを取得する
 
static auto aend (node_pointer it)
 
static void set_non_blocking_flag (node_pointer it, bool b)
 属性を検索する [詳解]
 
static void set_already_started_flag (node_pointer it, bool b)
 script 要素の "already started" flag を設定する [詳解]
 
static ns_name get_namespace_name (attribute_type const &attr)
 
static string_type get_namespace (attribute_type const &attr)
 
static attribute_name get_local_name_name (attribute_type const &attr)
 
static string_type get_local_name (attribute_type const &attr)
 
static string_type get_qualified_name (attribute_type const &attr)
 
static string_type const & value (attribute_type const &attr)
 
static bool is_text (node_pointer it)
 
static text_type create_text (char32_t cp)
 
static void append_text (node_pointer it, char32_t cp)
 
static bool is_processing_instruction (node_pointer it)
 
static bool is_comment (node_pointer it)
 
static comment_type create_comment (string_type const &data)
 
static bool is_document (node_pointer it)
 
static document_type_name get_document_type (node_pointer it)
 文書ノードから文書形式を取得する
 
static void set_document_type (node_pointer it, document_type_name type)
 文書ノードに文書形式を設定する [詳解]
 
static document_mode_name get_document_mode (node_pointer it)
 文書ノードから文書形式を取得する
 
static void set_document_mode (node_pointer it, document_mode_name mode)
 文書ノードに文書モードを設定する [詳解]
 
static bool is_iframe_srcdoc_document (node_pointer it)
 文書が IFRAME ソース文書か調べる [詳解]
 
static void set_document_ready_state (string_type const &readiness)
 
static bool is_document_type (node_pointer it)
 
static document_type_type create_document_type (string_type const &name, string_type const &public_id, string_type const &system_id)
 
static bool is_root (node_pointer it)
 
static bool is_single (node_type const &node)
 

詳解

template<typename NodeIterator>
class wordring::html::simple_node_traits< NodeIterator >

node_traits のテンプレート特殊化

参照
node_traits

関数詳解

◆ parent()

template<typename NodeIterator >
static node_pointer wordring::html::simple_node_traits< NodeIterator >::parent ( node_pointer  it)
inlinestatic

親要素を返す

根に親は無い。 この場合、pointer() が返すものと同一のポインタを返す。

◆ set_document()

template<typename NodeIterator >
static void wordring::html::simple_node_traits< NodeIterator >::set_document ( node_pointer  it,
node_pointer  doc 
)
inlinestatic

要素へオーナー文書を設定する

パーサーは呼び出すが、simple node側は実装していないので、何もしない。

◆ equals()

template<typename NodeIterator >
static bool wordring::html::simple_node_traits< NodeIterator >::equals ( node_pointer  lhs,
node_pointer  rhs 
)
inlinestatic

二つの要素が同じシグネチャを持つか調べる

push_active_formatting_element_list() から呼び出される。

◆ set_non_blocking_flag()

template<typename NodeIterator >
static void wordring::html::simple_node_traits< NodeIterator >::set_non_blocking_flag ( node_pointer  it,
bool  b 
)
inlinestatic

属性を検索する

script 要素の "non-blocking" flag を設定する

パーサーは呼び出すが、simple node側は実装していないので、何もしない。

◆ set_already_started_flag()

template<typename NodeIterator >
static void wordring::html::simple_node_traits< NodeIterator >::set_already_started_flag ( node_pointer  it,
bool  b 
)
inlinestatic

script 要素の "already started" flag を設定する

パーサーは呼び出すが、simple node側は実装していないので、何もしない。

◆ set_document_type()

template<typename NodeIterator >
static void wordring::html::simple_node_traits< NodeIterator >::set_document_type ( node_pointer  it,
document_type_name  type 
)
inlinestatic

文書ノードに文書形式を設定する

引数
[in]node文書ノード
[in]type文書形式( html あるいは xml )

◆ set_document_mode()

template<typename NodeIterator >
static void wordring::html::simple_node_traits< NodeIterator >::set_document_mode ( node_pointer  it,
document_mode_name  mode 
)
inlinestatic

文書ノードに文書モードを設定する

引数
[in]node文書ノード
[in]mode文書モード( no_quirks、quirks、あるいは limited_quirks )

◆ is_iframe_srcdoc_document()

template<typename NodeIterator >
static bool wordring::html::simple_node_traits< NodeIterator >::is_iframe_srcdoc_document ( node_pointer  it)
inlinestatic

◆ set_document_ready_state()

template<typename NodeIterator >
static void wordring::html::simple_node_traits< NodeIterator >::set_document_ready_state ( string_type const &  readiness)
inlinestatic

このクラス詳解は次のファイルから抽出されました: