当前位置: 首页>>代码示例>>C++>>正文


C++ list_type::push_tail方法代码示例

本文整理汇总了C++中list_type::push_tail方法的典型用法代码示例。如果您正苦于以下问题:C++ list_type::push_tail方法的具体用法?C++ list_type::push_tail怎么用?C++ list_type::push_tail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在list_type的用法示例。


在下文中一共展示了list_type::push_tail方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: return

    __normal_call bool_type circ_list (
        real_type *_ppos,
        iptr_type &_elem,
        list_type &_list,
        iptr_type  _hint  = null_flag()
        )
    {
        this->_work.clear();
    /*--------------------------- find enclosing tria */
        if (walk_mesh_node(_ppos, _elem, _hint))
		{
    /*------------------------------ bfs about cavity */
        typename tria_pred:: 
        template circ_pred<
             self_type >_pred( _ppos) ;
             
		walk_tria_list (_elem, +1, 
                        _pred, _work) ;
                        
    /*------------------------------ push index lists */
        _list.push_tail(_work.head(),
						_work.tend()) ;
						
		return (  true ) ;
        }
        
        return ( false ) ;
    }
开发者ID:jamesliu516,项目名称:jigsaw-matlab,代码行数:28,代码来源:delaunay_tri_k.hpp

示例2: find

 __normal_call bool_type find (
     data_type const&_data,
     list_type      &_list
     )
 {
     if (this->_lptr.empty()) return false;
     
 /*------------------------------- evaluate hash value */
     size_type _hpos = this->_hash(_data ) 
                     % this->_lptr.count();
                     
 /*------------------------------- scan list from head */
     item_type*_same = this->_lptr[_hpos] ;
 /*------------------------------- check exact matches */
     for( ; _same != nullptr; 
                 _same = _same->_next)
     {
         if (this->_pred(_same->_data,_data))
         {
             _list.push_tail(_same);
         }
     }
     
 /*---------------------------------- no matches found */
     return ( !_list.empty() );
 }
开发者ID:jamesliu516,项目名称:jigsaw-matlab,代码行数:26,代码来源:hashtable.hpp

示例3:

	__normal_call void_type walk_tria (
		iptr_type  _tria ,
	    tria_pred  _pred ,
	    list_type &_list
		)
	{
		this->_work.clear()  ;  
    /*----------------------------------- bfs about _tria */
        walk_tria_list (_tria,    +1, 
                        _pred, _work) ;
                        
    /*----------------------------------- push index list */
		_list.push_tail(_work.head(),
						_work.tend()) ;
	}
开发者ID:jamesliu516,项目名称:jigsaw-matlab,代码行数:15,代码来源:delaunay_tri_k.hpp

示例4: next

	__normal_call void_type walk_node (
		iptr_type  _node ,
		tria_pred  _pred ,
	    list_type &_list
		)
	{
        if (node(_node)->
            next() != this->null_flag())
        {
		this->_work.clear()  ;
	/*----------------------------------- bfs about _node */
        walk_tria_list (
		    node(_node)->next(), 
                 +1   , _pred, _work) ;

    /*----------------------------------- push index list */
        _list.push_tail(_work.head(),
						_work.tend()) ;
        }
    }
开发者ID:jamesliu516,项目名称:jigsaw-matlab,代码行数:20,代码来源:delaunay_tri_k.hpp


注:本文中的list_type::push_tail方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。