Advertisement
Guest User

Untitled

a guest
Sep 1st, 2015
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. documentclass[preview]{standalone}
  2. usepackage{listings,lipsum}
  3. begin{document}
  4. lstset{language=[Objective]C, frame=single}
  5. begin{figure}[h]
  6. {centering
  7. begin{lstlisting}
  8. struct CVMatWrapperImpl;
  9. @interface CVMatWrapper : NSObject
  10.  
  11. @property (nonatomic,readwrite) struct CVMatWrapperImpl* impl; ///< Pointer to struct wrapping the matrix
  12. @property (nonatomic,readonly) int rows; ///< Number of rows of the wrapped matrix
  13. @property (nonatomic,readonly) int cols; ///< Number of columns of the wrapped matrix
  14. -(NSArray*)eulerAngles;
  15. -(NSString*)description;
  16. @end
  17. end{lstlisting}
  18. caption{PIMPL pattern}
  19. label{lst:pimpl}}
  20. end{figure}
  21. end{document}
  22.  
  23. begin{lstlisting}
  24. struct CVMatWrapperImpl;
  25. @interface CVMatWrapper : NSObject
  26.  
  27. @property (nonatomic,readwrite) struct CVMatWrapperImpl* impl; ///< Pointer to struct wrapping the matrix
  28. @property (nonatomic,readonly) int rows; ///< Number of rows of the wrapped matrix
  29. @property (nonatomic,readonly) int cols; ///< Number of columns of the wrapped matrix
  30. -(NSArray*)eulerAngles;
  31. -(NSString*)description;
  32. @end
  33. end{lstlisting}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement