::NPTEAM:: Network Programer Team

검색 :
RSS 구독 : 글 / 댓글 / 트랙백 / 글+트랙백

글 검색 결과

프로그래밍/VA Snippet
글 3개

[VA Snippet] class with prompt for name

class with prompt for name
class $Class_name$
{
public:
	explicit $Class_name$();
	~$Class_name$();

private:
	$end$
};
2011/01/23 20:07 2011/01/23 20:07

맨 위로

[VA Snippet] Set, Get Method

Refactor Encapsulate Field
	$end$$SymbolType$		Get$GeneratedPropertyName$() const			{ return $SymbolName$;	}
	void		Set$GeneratedPropertyName$( $SymbolType$ $GeneratedPropertyName$ )	{ $SymbolName$ = $GeneratedPropertyName$;	}
2011/01/23 19:54 2011/01/23 19:54

맨 위로

functor 관련 snippet

functor 일반
class fntor$FUNCTOR_NAME$ : public std::unary_function< $ELEMENT_TYPE$, $RETURN_TYPE$ >
{
public:
	explicit fntor$FUNCTOR_NAME$() {};
	
	$RETURN_TYPE$ operator() ( const $ELEMENT_TYPE$& elem ) const
	{
		$end$
	}
	
private:
};
functor this 포인터 포함
class fntor$FUNCTOR_NAME$ : public std::unary_function< $ELEMENT_TYPE$, $RETURN_TYPE$ >
{
public:
	explicit fntor$FUNCTOR_NAME$( $ClassName$* pThis )
		: _pThis( pThis )
	{};
	
	$RETURN_TYPE$ operator() ( const $ELEMENT_TYPE$& elem ) const
	{
		$end$
	}
	
private:
	$ClassName$* _pThis;
};
-------------------------
2011/01/06 12:22 2011/01/06 12:22

맨 위로